diff --git a/tests/DOM/dom_conf_test.hpp b/tests/DOM/dom_conf_test.hpp index b6777677..d51986b6 100644 --- a/tests/DOM/dom_conf_test.hpp +++ b/tests/DOM/dom_conf_test.hpp @@ -53,11 +53,13 @@ protected: Arabica::SAX::InputSource is(SA::construct_from_utf8(filename.c_str())); Arabica::SAX2DOM::Parser parser; + Arabica::SAX::CatchErrorHandler eh; + parser.setErrorHandler(eh); parser.parse(is); Document d = parser.getDocument(); if(d == 0) - assertImplementation(false, "Could not load", -1, filename); + assertImplementation(false, "Could not load : " + eh.errors(), -1, filename); //d.normalize(); return d;