Skip to content

Commit ddedb93

Browse files
committed
dump more debug friendly error message for incomplete call assertion errors
1 parent 134bc0e commit ddedb93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mldaikon/trace/trace_pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def _rm_incomplete_trailing_func_calls(self):
191191
):
192192
assert (
193193
row["type"] == TraceLineType.FUNC_CALL_PRE
194-
), "Incomplete function call is not a pre-call event."
194+
), f"Incomplete function call is not a pre-call event, got {row['type']}, id {row['func_call_id']}"
195195
logger.warning(f"Incomplete function call detected: {row}")
196196
process_id = row["process_id"]
197197
thread_id = row["thread_id"]

0 commit comments

Comments
 (0)