Catch std::exception too, so we get more information than "unknown error"
This commit is contained in:
parent
c602e28edf
commit
ae126bb539
1 changed files with 2 additions and 0 deletions
|
@ -944,6 +944,8 @@ bool game_controller::play_multiplayer_mode()
|
|||
} catch(twml_exception& e) {
|
||||
e.show(disp());
|
||||
return false;
|
||||
} catch(std::exception& e) {
|
||||
std::cerr << "caught exception: " << e.what() << "\n";
|
||||
} catch(...) {
|
||||
std::cerr << "caught unknown error playing level...\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue