Skip to content

Commit bf1491a

Browse files
committed
[ModelicaSystemBase] include the original exception if reraised as ModelExecutionException
1 parent 33685c8 commit bf1491a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ def linearize(
18601860

18611861
linear_data[target] = value_ast
18621862
except (AttributeError, IndexError, ValueError, SyntaxError, TypeError) as ex:
1863-
raise ModelicaSystemError(f"Error parsing linearization file {linear_file}!") from ex
1863+
raise ModelicaSystemError(f"Error parsing linearization file {linear_file}: {ex}") from ex
18641864

18651865
# remove the file
18661866
linear_file.unlink()

0 commit comments

Comments
 (0)