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

Error handling #166

Open
elmbeech opened this issue Jul 6, 2023 · 0 comments
Open

Error handling #166

elmbeech opened this issue Jul 6, 2023 · 0 comments

Comments

@elmbeech
Copy link
Contributor

elmbeech commented Jul 6, 2023

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

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