From 869118ed1f4fc38e32ff8a3fa8d8b9309bcb6827 Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Fri, 23 Aug 2013 14:18:10 +0200 Subject: [PATCH] Exeptions handling when sending accidentaly deleted file --- app/controllers/dmsf_files_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/dmsf_files_controller.rb b/app/controllers/dmsf_files_controller.rb index cbd5647b..f87fed4c 100644 --- a/app/controllers/dmsf_files_controller.rb +++ b/app/controllers/dmsf_files_controller.rb @@ -51,7 +51,7 @@ class DmsfFilesController < ApplicationController check_project(@revision.file) begin send_revision - rescue MissingFile => e + rescue ActionController::MissingFile => e render_404 end return