Skip to content

Commit bb96cf4

Browse files
committed
exit properly
1 parent ca5f63e commit bb96cf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codeflash/tracer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def main(args: Namespace | None = None) -> ArgumentParser:
116116
with result_pickle_file_path.open(mode="rb") as f:
117117
data = pickle.load(f)
118118
except Exception:
119-
console.print("Failed to trace")
119+
console.info("❌ Failed to trace. Exiting...")
120+
sys.exit(1)
120121
finally:
121122
result_pickle_file_path.unlink(missing_ok=True)
122123

0 commit comments

Comments
 (0)