mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
FIX: Call the right method
This commit is contained in:
parent
0d3d2c43a0
commit
e4f05a0d15
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user