summaryrefslogtreecommitdiff
path: root/lib/backup/files.rb
diff options
context:
space:
mode:
authorLuke Bennett <lbennett@gitlab.com>2019-01-30 05:10:37 +0000
committerLuke Bennett <lbennett@gitlab.com>2019-01-31 04:56:51 +0000
commite33e3d29ae56ddd10b66513c35f3e318ea375cb9 (patch)
treece5d1515f93c1e38a01c95b5e0f07f1b572f3763 /lib/backup/files.rb
parentb5f089f2b7100dffb1a346e95022f88e6ff06415 (diff)
downloadgitlab-ce-i18n-cop.tar.gz
Autofixed some untranslated stringsi18n-cop
Diffstat (limited to 'lib/backup/files.rb')
-rw-r--r--lib/backup/files.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backup/files.rb b/lib/backup/files.rb
index 2bac84846c5..ca088401abd 100644
--- a/lib/backup/files.rb
+++ b/lib/backup/files.rb
@@ -28,7 +28,7 @@ module Backup
unless status.zero?
puts output
- raise Backup::Error, 'Backup failed'
+ raise Backup::Error, _('Backup failed')
end
run_pipeline!([%W(#{tar} --exclude=lost+found -C #{@backup_files_dir} -cf - .), %w(gzip -c -1)], out: [backup_tarball, 'w', 0600])
@@ -78,7 +78,7 @@ 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
+ raise Backup::Error, _('Backup failed') unless err_r.read =~ regex
end
end
end