Skip to content

Commit 48c807e

Browse files
committed
Use the real exception message
1 parent 5dd9c81 commit 48c807e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/infrastructure/http/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def custom_base_errors_handler(_: Request, error: BaseError) -> JSONResponse:
1818
# TODO Some unit tests check for error messages. Might be bad? If the erroring endpoint doesn't log anything
1919
# TODO then there is nothing in the log. Logging here ensures errors actually get logged.
2020
if settings.env != "testing":
21-
logger.warning(error.message, exc_info=error)
21+
logger.warning(error.error, exc_info=error)
2222

2323
response = ErrorResponseMulti(
2424
result=[

0 commit comments

Comments
 (0)