FIX: Call the right method

This commit is contained in:
Dan Ungureanu 2019-12-03 14:16:06 +02:00
parent 0d3d2c43a0
commit e4f05a0d15
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84

View File

@ -204,7 +204,7 @@ class Admin::BackupsController < Admin::AdminController
begin
upload_url = store.generate_upload_url(filename)
rescue BackupRestore::BackupStore::BackupFileExists
return render_json_error(I18n("backup.file_exists"))
return render_json_error(I18n.t("backup.file_exists"))
rescue BackupRestore::BackupStore::StorageError => e
return render_json_error(e)
end