Skip to content

Commit

Permalink
[DR] ensure compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaciasc committed Feb 7, 2024
1 parent d388983 commit 2d30e80
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ipol_demo/modules/demorunner/demorunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def ensure_compilation(
log_content = read_workdir_file(compilation_path, build_filename)
else:
log_content = ""
response = {"message": message, "buildlog": log_content}
response = {"detail": message, "buildlog": log_content}
raise HTTPException(status_code=500, detail=response)

except urllib.error.HTTPError as ex:
Expand All @@ -431,7 +431,8 @@ def ensure_compilation(
message = f"INTERNAL ERROR in ensure_compilation. {ex}"
logger.exception(f"INTERNAL ERROR in ensure_compilation, demo {demo_id}")

raise HTTPException(status_code=500, detail=message)
response = {"detail": message}
raise HTTPException(status_code=500, detail=response)


@private_route.post("/compilations", status_code=201)
Expand Down

0 comments on commit 2d30e80

Please sign in to comment.