From faad6d8543b09317d36c7ae47fc25adcba6443f6 Mon Sep 17 00:00:00 2001 From: artemp Date: Wed, 14 Oct 2015 10:32:29 +0100 Subject: [PATCH] catch std::exception --- demo/viewer/mainwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/viewer/mainwindow.cpp b/demo/viewer/mainwindow.cpp index bd80bcf3d..d9b044f1c 100644 --- a/demo/viewer/mainwindow.cpp +++ b/demo/viewer/mainwindow.cpp @@ -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";