A platform for community discussion. Free, open, simple.
FIX: render error message when backup download fails
Arpit Jalaned4b845930e0
diff --git a/app/controllers/admin/backups_controller.rb b/app/controllers/admin/backups_controller.rbindex 52b8403cddf..9fd0f9c9bb2 100644--- a/app/controllers/admin/backups_controller.rb+++ b/app/controllers/admin/backups_controller.rb@@ -70,7 +70,7 @@ class Admin::BackupsController < Admin::AdminControllersend_file backup.pathelseif @error- render layout: 'no_ember', status: 422+ render template: 'admin/backups/show.html.erb', layout: 'no_ember', status: 422elserender body: nil, status: 404end