catch std::exception

This commit is contained in:
artemp 2015-10-14 10:32:29 +01:00
parent 950afdcac1
commit faad6d8543

View file

@ -196,10 +196,10 @@ void MainWindow::load_map_file(QString const& filename)
mapnik::auto_cpu_timer t(std::clog, "loading map took: ");
mapnik::load_map(*map,filename.toStdString());
}
//catch (mapnik::config_error & ex)
//{
// std::cout << ex.what() << "\n";
//}
catch (std::exception & ex)
{
std::cout << ex.what() << "\n";
}
catch (...)
{
std::cerr << "Exception caught in load_map\n";