mail[Wesnoth-commits] r36518 - /branches/1.6/src/editor2/editor_controller.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by kailoran on July 02, 2009 - 15:59:
Author: ilor
Date: Thu Jul  2 15:59:42 2009
New Revision: 36518

URL: http://svn.gna.org/viewcvs/wesnoth?rev=36518&view=rev
Log:
catch wml errors in the editor

Modified:
    branches/1.6/src/editor2/editor_controller.cpp

Modified: branches/1.6/src/editor2/editor_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/editor2/editor_controller.cpp?rev=36518&r1=36517&r2=36518&view=diff
==============================================================================
--- branches/1.6/src/editor2/editor_controller.cpp (original)
+++ branches/1.6/src/editor2/editor_controller.cpp Thu Jul  2 15:59:42 2009
@@ -275,6 +275,8 @@
        } catch (editor_exception& e) {
                gui::message_dialog(gui(), _("Fatal error"), e.what()).show();
                return EXIT_ERROR;
+       } catch (twml_exception& e) {
+               e.show(gui());
        }
        return quit_mode_;
 }




Related Messages


Powered by MHonArc, Updated Thu Jul 02 23:40:36 2009