Better exception handling when a file is physically missing

This commit is contained in:
Karel Picman 2016-03-01 13:48:47 +01:00
parent 62997ecc0b
commit 0f1eccffd7

View File

@ -45,7 +45,7 @@ module RedmineDmsf
if available
serving(env)
else
return fail(403, 'Not Found')
fail(404, "File not found: #{@path}")
end
end
end