Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2892


Ignore:
Timestamp:
Apr 5, 2009, 11:26:23 PM (15 years ago)
Author:
bknecht
Message:

catching CEGUI error to avoid sigabrt. ready for merge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gui/GUIManager.cc

    r2887 r2892  
    230230    void GUIManager::executeCode(const std::string& str)
    231231    {
    232         this->scriptModule_->executeString(str);
     232        try
     233        {
     234            this->scriptModule_->executeString(str);
     235        }
     236        catch (CEGUI::Exception& ex)
     237        {
     238            COUT(2) << "CEGUI Error: \"" << ex.getMessage() << "\" while executing code \"" << str << "\"" << std::endl;
     239        }
    233240    }
    234241
Note: See TracChangeset for help on using the changeset viewer.