Fixes issue #392

This commit is contained in:
DennisOSRM 2012-08-31 09:46:23 +02:00
parent bdcbb8670c
commit 7bd4e213c2

View File

@ -76,17 +76,14 @@ public:
); );
if(!(*nodeCallback)(n)) if(!(*nodeCallback)(n))
std::cerr << "[XMLParser] dense node not parsed" << std::endl; std::cerr << "[XMLParser] dense node not parsed" << std::endl;
} catch (const luabind::error &er) { } catch (const luabind::error &er) {
cerr << er.what() << endl; cerr << er.what() << endl;
lua_State* Ler=er.state(); lua_State* Ler=er.state();
report_errors(Ler, -1); report_errors(Ler, -1);
} catch (std::exception & e) { } catch (std::exception & e) {
ERR("LUA: " << e.what()); ERR(e.what());
} } catch (...) {
ERR("Unknown error occurred during XML node parsing!");
catch (...) {
ERR("Unknown error occurred during XML dense node parsing!");
} }
} }
@ -110,9 +107,10 @@ public:
cerr << er.what() << endl; cerr << er.what() << endl;
lua_State* Ler=er.state(); lua_State* Ler=er.state();
report_errors(Ler, -1); report_errors(Ler, -1);
} } catch (std::exception & e) {
catch (...) { ERR(e.what());
cerr<<"Unknown error!"<<endl; } catch (...) {
ERR("Unknown error occurred during XML way parsing!");
} }
} }
if ( xmlStrEqual( currentName, ( const xmlChar* ) "relation" ) == 1 ) { if ( xmlStrEqual( currentName, ( const xmlChar* ) "relation" ) == 1 ) {