Skip to content

Commit

Permalink
Change the error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
EstelleDa committed Oct 11, 2024
1 parent 6f7892d commit 010c229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mavedb/routers/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ async def check_permission(
return permission
else:
logger.debug(msg="The requested resources does not exist.", extra=logging_context())
raise HTTPException(status_code=404, detail=f"{model_name} with URN '{urn}' not found")
raise HTTPException(status_code=404, detail=f"{model_name.value} with URN '{urn}' not found")

0 comments on commit 010c229

Please sign in to comment.