mirror of https://github.com/tiangolo/fastapi.git
🔊 Raise from previous exception (#195)
This commit is contained in:
parent
49d33f9f70
commit
b0b88f9d5b
|
|
@ -61,7 +61,7 @@ def get_app(
|
||||||
logging.error(f"Error getting request body: {e}")
|
logging.error(f"Error getting request body: {e}")
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=400, detail="There was an error parsing the body"
|
status_code=400, detail="There was an error parsing the body"
|
||||||
)
|
) from e
|
||||||
values, errors, background_tasks = await solve_dependencies(
|
values, errors, background_tasks = await solve_dependencies(
|
||||||
request=request, dependant=dependant, body=body
|
request=request, dependant=dependant, body=body
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue