Commit 84b7aed2 authored by Michael Kozono's avatar Michael Kozono

Merge branch 'nhxnguyen-backup-error-logging' into 'master'

Display message on file backup pipeline error

See merge request gitlab-org/gitlab!32791
parents 7a998d4e 8a95c9b2
......@@ -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