xmlutil test: display standard exception if thrown
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 18 Jul 2011 12:22:43 +0000 (14:22 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 18 Jul 2011 12:22:43 +0000 (14:22 +0200)
src/test_xmlutil.cpp

index 13065a1..ae9b571 100644 (file)
@@ -99,8 +99,13 @@ BOOST_AUTO_TEST_CASE( url_recipe )
             xmlFreeDoc(doc);
         }
     }
+    catch ( std::runtime_error &e) {
+        std::cout << "std::runtime error: " << e.what() << std::endl;
+        BOOST_CHECK(false);
+    }
     catch ( ... ) {
-        BOOST_CHECK (false);
+        std::cout << "unknown exception" << std::endl;
+        BOOST_CHECK(false);
     }
 }