Exeptions handling when sending accidentaly deleted file
This commit is contained in:
parent
126523c7bd
commit
5f6cff9e80
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user