Exit with a status of 1 when catching a wild unidentified exception
I'm pretty sure nobody ever could possibly want this to be a status of 0 (success).
This commit is contained in:
parent
6397598d4e
commit
a0c01a1193
1 changed files with 1 additions and 0 deletions
|
@ -870,6 +870,7 @@ int main(int argc, char** argv)
|
|||
// some compilers will simply terminate without calling destructors if
|
||||
// the exception isn't caught.)
|
||||
std::cerr << "Caught unspecified general exception. Terminating." << std::endl;
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue