Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abort on messages #116

Open
ianhinder opened this issue Jan 23, 2015 · 0 comments
Open

Abort on messages #116

ianhinder opened this issue Jan 23, 2015 · 0 comments

Comments

@ianhinder
Copy link
Owner

When Mathematica detects a problem, for example bad input to a function, it generates a message and returns the input unevaluated. This usually leads to a cascade of errors and is unhelpful in a system such as Kranc. Instead, Kranc should cause these messages to become fatal errors which cause Kranc to abort. This is possible using AddHandler (http://mathematica.stackexchange.com/questions/1512/how-to-abort-on-any-message-generated/9242#9242) and is used in SimulationTools and the Kranc test system already.

One problem with aborting on all messages is that new versions of Mathematica sometimes deprecate functions and output a message when they are used. We should not abort on these messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant