Opened 16 years ago
Last modified 14 years ago
#1062 closed defect (fixed)
Not so useful error message for an invalid model (from MathCore)
Reported by: | krsta | Owned by: | krsta |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | krsta, Martin Sjölund |
Description
The below model is not valid and returns an error message:
"Internal error, check of model failed with no error message."
Is it possible to give a more detailed error message?
model WhenNotValid Real x, y; equation x + y = 5; when sample(0,2) then 2*x + y = 7; //Not valid (should be e.g. y=7-2*x) end when; end WhenNotValid;
Change History (3)
comment:1 by , 15 years ago
comment:2 by , 14 years ago
This was implemented by Björn using print() instead of Error.mo. I'll improve it a bit.
Note:
See TracTickets
for help on using tickets.
http://intranet/trac/mathmodelica/ticket/1101