FIX: render error message when backup download fails
This commit is contained in:
parent
86d13c0d62
commit
ed4b845930
|
@ -70,7 +70,7 @@ class Admin::BackupsController < Admin::AdminController
|
|||
send_file backup.path
|
||||
else
|
||||
if @error
|
||||
render layout: 'no_ember', status: 422
|
||||
render template: 'admin/backups/show.html.erb', layout: 'no_ember', status: 422
|
||||
else
|
||||
render body: nil, status: 404
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue