diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cxml.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cxml.cc b/src/cxml.cc index 2aad081..756dd2a 100644 --- a/src/cxml.cc +++ b/src/cxml.cc @@ -142,12 +142,12 @@ cxml::Node::string_attribute (string name) const { xmlpp::Element const * e = dynamic_cast<const xmlpp::Element *> (_node); if (!e) { - throw cxml::Error ("missing attribute"); + throw cxml::Error ("missing attribute " + name); } xmlpp::Attribute* a = e->get_attribute (name); if (!a) { - throw cxml::Error ("missing attribute"); + throw cxml::Error ("missing attribute " + name); } return a->get_value (); |
