feat: enhance invoice validation and error handling with detailed messages

This commit is contained in:
AlexeerCT
2026-01-10 23:42:05 -06:00
parent 25c51120f9
commit 887cbfa5ce
9 changed files with 255 additions and 115 deletions

View File

@@ -31,6 +31,10 @@ async def base_exception_handler(
},
)
# Log detailed errors if they exist
if hasattr(exc, "errors") and exc.errors:
logger.warning(f"Validation errors details: {exc.errors}")
return JSONResponse(
status_code=exc.status_code,
content=exc.to_dict(),