summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-09 22:45:05 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-09 22:45:05 +0000
commit735649849ceb024520491a7acf4e4c18ce3f4884 (patch)
tree6d8681702d31d8b0dfc7796be37ba8a83bd386e8 /src
parentba540d35f8bf3557d5f3b0c55f7699563201e9b7 (diff)
Better error.
Diffstat (limited to 'src')
-rw-r--r--src/cxml.cc4
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 ();