PhysiCell icon indicating copy to clipboard operation
PhysiCell copied to clipboard

Error handling

Open elmbeech opened this issue 1 year ago • 0 comments

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

elmbeech avatar Jul 06 '23 16:07 elmbeech