catch std::exception to get better stderr

This commit is contained in:
artemp 2015-07-29 16:09:33 +02:00
parent d05c13d849
commit 5b287ab798

View file

@ -213,6 +213,12 @@ int main (int argc,char** argv)
status = mapnik::util::apply_visitor(visitor, *marker);
}
}
catch (std::exception const& ex)
{
std::clog << "Exception caught:" << ex.what() << std::endl;
xmlCleanupParser();
return -1;
}
catch (...)
{
std::clog << "Exception of unknown type!" << std::endl;