Skip to content

Commit

Permalink
List filename in 404 error
Browse files Browse the repository at this point in the history
  • Loading branch information
mstratford committed Mar 10, 2023
1 parent 76ddea5 commit 06812b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ async def audio_file(request, type: str, id: int):
try:
response = await file(filename)
except FileNotFoundError:
raise SanicException("Not Found",404)
raise SanicException("Not Found: "+filename,404)
return response


Expand Down

0 comments on commit 06812b9

Please sign in to comment.