Exeptions handling when sending accidentaly deleted file

This commit is contained in:
Karel Picman 2013-08-23 14:18:10 +02:00
parent 5f6cff9e80
commit 869118ed1f

View File

@ -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