Skip to content

Commit

Permalink
Merge pull request #200 from lsst-sqre/tickets/DM-45138
Browse files Browse the repository at this point in the history
DM-45138: Properly add colon after error code
  • Loading branch information
rra authored Jul 11, 2024
2 parents fb7ef01 + 39cb7c1 commit 94fa92d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 44 deletions.
2 changes: 1 addition & 1 deletion src/vocutouts/uws/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
async def _uws_error_handler(
request: Request, exc: UWSError
) -> PlainTextResponse:
response = f"{exc.error_code.value} {exc!s}\n"
response = f"{exc.error_code.value}: {exc!s}\n"
if exc.detail:
response += "\n{exc.detail}"
return PlainTextResponse(response, status_code=exc.status_code)
Expand Down
43 changes: 0 additions & 43 deletions src/vocutouts/uws/errors.py

This file was deleted.

0 comments on commit 94fa92d

Please sign in to comment.