diff --git a/include/XML/QName.hpp b/include/XML/QName.hpp index 4c1e76cb..7a57143f 100644 --- a/include/XML/QName.hpp +++ b/include/XML/QName.hpp @@ -38,7 +38,7 @@ public: const UriMapper& mapper) { if(!Arabica::XML::is_qname(rawname)) - throw std::runtime_error("Bad qname : " + SA::asStdString(rawname)); + throw std::runtime_error("Bad qname : '" + SA::asStdString(rawname) +"'"); static string_type COLON = SA::construct_from_utf8(":"); diff --git a/include/XSLT/impl/xslt_qname.hpp b/include/XSLT/impl/xslt_qname.hpp index 63f07817..fa6322e9 100644 --- a/include/XSLT/impl/xslt_qname.hpp +++ b/include/XSLT/impl/xslt_qname.hpp @@ -40,7 +40,7 @@ struct QName static QName create(const std::string& qName, const std::string& namespaceURI) { if(!Arabica::XML::is_qname >(qName)) - throw SAX::SAXException("Bad name : " + qName); + throw SAX::SAXException("Bad name : '" + qName + "'"); static char COLON = Arabica::text::Unicode::COLON;