mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 19:42:39 +00:00
Catch the new SDL exception in the main game.
This commit is contained in:
parent
f6b52f338c
commit
982a844470
@ -30,6 +30,7 @@
|
||||
#include "playcampaign.hpp"
|
||||
#include "preferences_display.hpp"
|
||||
#include "replay.hpp"
|
||||
#include "sdl/exception.hpp"
|
||||
#include "serialization/binary_or_text.hpp"
|
||||
#include "serialization/parser.hpp"
|
||||
#include "serialization/validator.hpp"
|
||||
@ -721,6 +722,9 @@ int main(int argc, char** argv)
|
||||
std::cerr << e.what()
|
||||
<< "\n\nGame will be aborted.\n";
|
||||
return 1;
|
||||
} catch(const sdl::texception& e) {
|
||||
std::cerr << e.what();
|
||||
return 1;
|
||||
} catch(game::error &) {
|
||||
// A message has already been displayed.
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user