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");
|
||||
|
|
|
@ -123,6 +123,10 @@ feature_ptr raster_featureset<LookupPolicy>::next()
|
|||
{
|
||||
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 (...)
|
||||
{
|
||||
std::cerr << "Raster Plugin: exception caught" << std::endl;
|
||||
|
|
Loading…
Reference in a new issue