From 243643bf76ee833872525c57c83e33d3a14ba4c4 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 5 Jan 2018 19:39:40 +0530 Subject: [PATCH] FIX: render error message when backup download fails --- app/controllers/admin/backups_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/backups_controller.rb b/app/controllers/admin/backups_controller.rb index 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::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