Skip to content

Commit

Permalink
chore: Unify error output
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jul 17, 2023
1 parent bf11595 commit 9f71569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nexus/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@app.exception_handler(HTTPException)
async def errorHandler(request, exc):
resp = JSONResponse(
{"status": exc.status_code, "detail": str(exc.detail)},
{"code": exc.status_code, "msg": str(exc.detail)},
status_code=exc.status_code,
)
if exc.status_code == 401:
Expand Down

0 comments on commit 9f71569

Please sign in to comment.