🐛 Un-hide inner HTTPException errors

This commit is contained in:
Sebastián Ramírez 2018-12-10 18:17:42 +04:00
parent 6f68666e0e
commit 9458d699cb
2 changed files with 1 additions and 5 deletions

View File

@ -1,6 +1,6 @@
"""FastAPI framework, high performance, easy to learn, fast to code, ready for production"""
__version__ = "0.1.6"
__version__ = "0.1.7"
from .applications import FastAPI
from .routing import APIRouter

View File

@ -66,13 +66,9 @@ def get_app(
raise HTTPException(
status_code=400, detail="There was an error parsing the body"
)
try:
values, errors = await solve_dependencies(
request=request, dependant=dependant, body=body
)
except Exception as e:
logging.error("Error solving dependencies", e)
raise HTTPException(status_code=400, detail="Error processing request")
if errors:
errors_out = ValidationError(errors)
raise HTTPException(