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: | Jan Brugård | Owned by: | Jan Brugård |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Jan Brugård, |
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.
Note:
See TracTickets
for help on using tickets.
http://intranet/trac/mathmodelica/ticket/2598