Opened 15 years ago
Last modified 14 years ago
#1142 closed defect (fixed)
Error message not understandable for users: "unexpected AST node". (from MathCore)
Reported by: | brugard | Owned by: | brugard |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | brugard, |
Description
Try to create the following class in text mode and press Ctrl+Return to update the kernel.
model A equation when time > 1.0 then assert; end when; end A;
You will receive the following error message:
[-1:-1]: error: unexpected AST node: assert
I do not think many users will get much out of this. Make the error message more understandable for the user and also include information in what class this error occurs in case you update a package or class containing child classes. This is a general problem in many error messages. They do not specify in what class the error occurs.
Change History (2)
comment:1 Changed 15 years ago by brugard
comment:2 Changed 14 years ago by sjoelund.se
Fixed in r7530, with testcase testsuite/parser/ParseError3.mo
http://intranet/trac/mathmodelica/ticket/2598