Merge pull request #1238 from simonsonc/viewer-exceptions
viewer: show more exception messages
This commit is contained in:
commit
9f83f84983
1 changed files with 8 additions and 0 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue