mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 18:43:40 +08:00
FIX: render error message when backup download fails
This commit is contained in:
parent
253711c233
commit
243643bf76
|
@ -70,7 +70,7 @@ class Admin::BackupsController < Admin::AdminController
|
||||||
send_file backup.path
|
send_file backup.path
|
||||||
else
|
else
|
||||||
if @error
|
if @error
|
||||||
render layout: 'no_ember', status: 422
|
render template: 'admin/backups/show.html.erb', layout: 'no_ember', status: 422
|
||||||
else
|
else
|
||||||
render body: nil, status: 404
|
render body: nil, status: 404
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user