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:
Ignacio R. Morelle 2014-07-03 22:34:12 -04:00
parent 6397598d4e
commit a0c01a1193

View file

@ -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
}