404 error is now more descriptive

This commit is contained in:
Donkie
2023-06-28 20:44:22 +02:00
parent 43a3e3f1f2
commit 64aaf2a06a
4 changed files with 41 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ async def itemnotfounderror_exception_handler(_request: Request, exc: ItemNotFou
logger.debug(exc, exc_info=True)
return JSONResponse(
status_code=404,
content={"message": "Item not found."},
content={"message": exc.args[0]},
)