format error messages
This commit is contained in:
parent
64d98453f8
commit
69806f2728
2 changed files with 9 additions and 1 deletions
|
@ -138,6 +138,10 @@ void raster_datasource::bind() const
|
|||
{
|
||||
throw datasource_exception("Raster Plugin: image reader exception: " + std::string(ex.what()));
|
||||
}
|
||||
catch (std::exception const& ex)
|
||||
{
|
||||
throw datasource_exception("Raster Plugin: " + std::string(ex.what()));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
throw datasource_exception("Raster Plugin: image reader unknown exception caught");
|
||||
|
|
|
@ -121,7 +121,11 @@ feature_ptr raster_featureset<LookupPolicy>::next()
|
|||
}
|
||||
catch (mapnik::image_reader_exception const& ex)
|
||||
{
|
||||
std::cerr << "Raster Plugin: image reader exception caught:" << ex.what() << std::endl;
|
||||
std::cerr << "Raster Plugin: image reader exception caught: " << ex.what() << std::endl;
|
||||
}
|
||||
catch (std::exception const& ex)
|
||||
{
|
||||
std::cerr << "Raster Plugin: " << ex.what() << std::endl;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue