Skip to content

Commit

Permalink
Add more information on validation failure (#37)
Browse files Browse the repository at this point in the history
* Add some more information when validating test suite
  • Loading branch information
t-persson committed Aug 26, 2022
1 parent 374be9f commit 77e69e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/etos_api/routers/etos/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ async def start_etos(etos: StartEtosRequest):
except AssertionError as exception:
LOGGER.error("Test suite validation failed!")
LOGGER.error(exception)
return Response(status_code=400)
raise HTTPException(
status_code=400, detail=f"Test suite validation failed. {exception}"
) from exception
LOGGER.info("Test suite validated.")

etos_library = ETOS("ETOS API", os.getenv("HOSTNAME"), "ETOS API")
Expand Down

0 comments on commit 77e69e4

Please sign in to comment.