Skip to content

Commit

Permalink
Exit with a status of 1 when catching a wild unidentified exception
Browse files Browse the repository at this point in the history
I'm pretty sure nobody ever could possibly want this to be a status of 0
(success).
  • Loading branch information
irydacea committed Jul 4, 2014
1 parent 6397598 commit a0c01a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wesnoth.cpp
Expand Up @@ -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
}

Expand Down

0 comments on commit a0c01a1

Please sign in to comment.