handle megaglest_runtime_error

This commit is contained in:
titiger 2016-12-01 01:42:20 +01:00
parent 28bcf81626
commit a982ce7b0c
1 changed files with 3 additions and 0 deletions

View File

@ -416,6 +416,9 @@ XmlNode *XmlIoRapid::load(const string &path, const std::map<string,string> &map
}
#endif
}
catch(megaglest_runtime_error& ex) {
throw megaglest_runtime_error("Error loading XML: "+ path + "\nMessage: " + ex.what(),!ex.wantStackTrace() );
}
catch(const exception &ex) {
char szBuf[8096]="";