summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-12 15:34:29 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-12 15:34:29 +0000
commited42a32b67257991630509ad81162d27ee2e8fe1 (patch)
tree0d92732ea696e726768c3c6a1b2038a20debb02f /src
parent735649849ceb024520491a7acf4e4c18ce3f4884 (diff)
Better error.
Diffstat (limited to 'src')
-rw-r--r--src/cxml.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cxml.cc b/src/cxml.cc
index 756dd2a..1d98529 100644
--- a/src/cxml.cc
+++ b/src/cxml.cc
@@ -284,7 +284,7 @@ cxml::Document::take_root_node ()
_node = _parser->get_document()->get_root_node ();
if (!_root_name.empty() && _node->get_name() != _root_name) {
- throw cxml::Error ("unrecognised root node");
+ throw cxml::Error ("unrecognised root node " + _node->get_name() + "(expecting " + _root_name + ")");
} else if (_root_name.empty ()) {
_root_name = _node->get_name ();
}