Exeptions handling when sending accidentaly deleted file

This commit is contained in:
Karel Picman 2013-08-23 14:17:12 +02:00
parent 126523c7bd
commit 5f6cff9e80

View File

@ -49,7 +49,11 @@ class DmsfFilesController < ApplicationController
end
end
check_project(@revision.file)
send_revision
begin
send_revision
rescue MissingFile => e
render_404
end
return
end