Catch the new SDL exception in the main game.

This commit is contained in:
Mark de Wever 2014-03-23 13:17:29 +01:00
parent f6b52f338c
commit 982a844470

View File

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