[Orxonox-commit 233] r2892 - branches/gui/src/orxonox/gui

bknecht at orxonox.net bknecht at orxonox.net
Sun Apr 5 23:26:24 CEST 2009


Author: bknecht
Date: 2009-04-05 23:26:23 +0200 (Sun, 05 Apr 2009)
New Revision: 2892

Modified:
   branches/gui/src/orxonox/gui/GUIManager.cc
Log:
catching CEGUI error to avoid sigabrt. ready for merge

Modified: branches/gui/src/orxonox/gui/GUIManager.cc
===================================================================
--- branches/gui/src/orxonox/gui/GUIManager.cc	2009-04-03 09:17:44 UTC (rev 2891)
+++ branches/gui/src/orxonox/gui/GUIManager.cc	2009-04-05 21:26:23 UTC (rev 2892)
@@ -229,7 +229,14 @@
     */
     void GUIManager::executeCode(const std::string& str)
     {
-        this->scriptModule_->executeString(str);
+        try
+        {
+            this->scriptModule_->executeString(str);
+        }
+        catch (CEGUI::Exception& ex)
+        {
+            COUT(2) << "CEGUI Error: \"" << ex.getMessage() << "\" while executing code \"" << str << "\"" << std::endl;
+        }
     }
 
     /**




More information about the Orxonox-commit mailing list