Better exception handling when a file is physically missing
This commit is contained in:
parent
62997ecc0b
commit
0f1eccffd7
@ -45,7 +45,7 @@ module RedmineDmsf
|
|||||||
if available
|
if available
|
||||||
serving(env)
|
serving(env)
|
||||||
else
|
else
|
||||||
return fail(403, 'Not Found')
|
fail(404, "File not found: #{@path}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user