Opened 14 years ago
Closed 14 years ago
#100 closed bug (fixed)
ERROR command
Reported by: | gorzel | Owned by: | hannes |
---|---|---|---|
Priority: | major | Milestone: | Release 3-1-0 |
Component: | singular-kernel | Version: | |
Keywords: | Cc: | gorzelc@… |
Description
The command Error (borrowed from MAPLE) should only display the string that it get as its argument and then return to Toplevel.
But it should not write the automatically generated error-messages.
Example:
> LIB "general.lib"; > primefactors(2222); [1]: 2,11,101 [2]: 1,1,1 [3]: 1 > primefactors(2222,"hjagjag"); ? 2nd parameter must be of type int ? error occurred in general.lib::primefactors line 1193: ` ERROR("2nd parameter must be of type int"+newline);` ? leaving general.lib::primefactors skipping text from `;` error at token `)`
Supress all of these
? error occurred in general.lib::primefactors line 1193: ` ERROR("2nd parameter must be of type int"+newline);` ? leaving general.lib::primefactors skipping text from `;` error at token `)`
In the present form, by indicating the line number of code, it is an invitation for the user to edit and debug the library?! (Moreover, we could have simulated this ERROR-command by just writing 1/0;)
It would have been easier to extend the already existing command "exit".
Note: See
TracTickets for help on using
tickets.
no exit and ERROR are very diffrent. In principle, ERROR is an runtime error. Some automatically generated messages removed.