-
Notifications
You must be signed in to change notification settings - Fork 88
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
Error handling #166
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
most of the Error write to std::cout only and give no error code back.
usually PhysiCell then just quits.
a Errors should be written to std::cerr and a proper Error should be raised (giving -1 back),
so that e.g. job scheduler like slurm can detect that there was an error and the code not successfully ended.
replacing:
std::cout << "Error: message goes here!" << std::endl;
with:
std::cerr << "Error : message goes here!" << std::endl; exit(-1);
should do the trick.
most easy way to find all error messages is: grep -r Error or grep -ir Error
happy to fix this and do a pull request.
please let me know. Elmar
The text was updated successfully, but these errors were encountered: