List filename in 404 error

This commit is contained in:
Matthew Stratford 2023-03-10 19:23:33 +00:00
parent 76ddea56f8
commit 06812b975b

View file

@ -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