catch wml errors in the editor

This commit is contained in:
Tomasz Śniatowski 2009-07-02 15:05:45 +01:00
parent 5ca96f1d58
commit a489f5a90c

View file

@ -285,6 +285,8 @@ EXIT_STATUS editor_controller::main_loop()
} catch (editor_exception& e) {
gui2::show_transient_message(gui().video(), _("Fatal error"), e.what());
return EXIT_ERROR;
} catch (twml_exception& e) {
e.show(gui());
}
return quit_mode_;
}