catch std::exception to get better stderr
This commit is contained in:
parent
d05c13d849
commit
5b287ab798
1 changed files with 6 additions and 0 deletions
|
@ -213,6 +213,12 @@ int main (int argc,char** argv)
|
||||||
status = mapnik::util::apply_visitor(visitor, *marker);
|
status = mapnik::util::apply_visitor(visitor, *marker);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (std::exception const& ex)
|
||||||
|
{
|
||||||
|
std::clog << "Exception caught:" << ex.what() << std::endl;
|
||||||
|
xmlCleanupParser();
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
std::clog << "Exception of unknown type!" << std::endl;
|
std::clog << "Exception of unknown type!" << std::endl;
|
||||||
|
|
Loading…
Reference in a new issue