Skip to content

Commit 7c41f5f

Browse files
committed
print exception
1 parent d90423d commit 7c41f5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/backend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ async def analyze(database: str = Body(...), query: str = Body(...), real_card:
131131
return {"plan": json.loads(relalg_plan.split("\n")[0]), "subopplan": json.loads(subop_plan.split("\n")[0]),
132132
"mlir": json.loads(analyzed_snapshots)}
133133
except Exception as e:
134+
print(e, file=sys.stderr)
134135
raise HTTPException(status_code=400, detail="Error during query analyze")
135136
return {}
136137

0 commit comments

Comments
 (0)