Merge pull request #1238 from simonsonc/viewer-exceptions

viewer: show more exception messages
This commit is contained in:
Dane Springmeyer 2012-05-31 16:38:14 -07:00
commit 9f83f84983

View file

@ -486,6 +486,10 @@ void render_agg(mapnik::Map const& map, double scaling_factor, QPixmap & pix)
{ {
std::cerr << ex.what() << std::endl; std::cerr << ex.what() << std::endl;
} }
catch (const std::exception & ex)
{
std::cerr << "exception: " << ex.what() << std::endl;
}
catch (...) catch (...)
{ {
std::cerr << "Unknown exception caught!\n"; std::cerr << "Unknown exception caught!\n";
@ -522,6 +526,10 @@ void render_grid(mapnik::Map const& map, double scaling_factor, QPixmap & pix)
{ {
std::cerr << ex.what() << std::endl; std::cerr << ex.what() << std::endl;
} }
catch (const std::exception & ex)
{
std::cerr << "exception: " << ex.what() << std::endl;
}
catch (...) catch (...)
{ {
std::cerr << "Unknown exception caught!\n"; std::cerr << "Unknown exception caught!\n";