try:
raise RuntimeError("exception is thrown")
except Exception as e:
print(f"caught exception {e=}")
codon run excepton_test.codon
RuntimeError: exception is thrown
Raised from:
.../exception_test.codon:2:2
Backtrace:
Aborted
However, if built first then it works:
codon build excepton_test.codon
./excepton_test.codon
caught exception e=exception is thrown
However, if built first then it works: