Commit 8a95c9b2 authored by Nick Nguyen's avatar Nick Nguyen Committed by Michael Kozono

Display message on file backup pipeline error

parent 2d7ba6f0
......@@ -78,7 +78,8 @@ module Backup
return if status.compact.all?(&:success?)
regex = /^g?tar: \.: Cannot mkdir: No such file or directory$/
raise Backup::Error, 'Backup failed' unless err_r.read =~ regex
error = err_r.read
raise Backup::Error, "Backup failed. #{error}" unless error =~ regex
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment