catch std::exception
This commit is contained in:
parent
950afdcac1
commit
faad6d8543
1 changed files with 4 additions and 4 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue