aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-03-19 03:45:21 +0100
committerNao Pross <np@0hm.ch>2024-03-19 03:45:21 +0100
commit62f36cca870ce8694f3dff504a2f05ee1d65e283 (patch)
treefcc94817a02b50ec582e80c0ad7be048bd8d5bc9
parentMake stub for determinant (diff)
downloadmdpoly-62f36cca870ce8694f3dff504a2f05ee1d65e283.tar.gz
mdpoly-62f36cca870ce8694f3dff504a2f05ee1d65e283.zip
Reword exception message
Diffstat (limited to '')
-rw-r--r--mdpoly/expressions.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdpoly/expressions.py b/mdpoly/expressions.py
index 4600660..6765b93 100644
--- a/mdpoly/expressions.py
+++ b/mdpoly/expressions.py
@@ -379,8 +379,9 @@ class WithOps:
import traceback
stackstr = "".join(traceback.format_stack(bad._stack[0].frame))
raise RuntimeError(f"Expression {str(bad)} caused the previous exception. "
- "Below is the call stack at the time when the bad expression "
- "object was constructed: \n\n" + stackstr) from e
+ f"Specifically: \n {repr(bad)}. \n\n"
+ "Call stack at the time when the bad expression "
+ "object was constructed: \n" + stackstr) from e
finally:
def clear_stack(expr: Expr):