Improve error message.
authorCarl Hetherington <cth@carlh.net>
Tue, 14 Oct 2014 23:57:45 +0000 (00:57 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 14 Oct 2014 23:57:45 +0000 (00:57 +0100)
src/cxml.cc

index 810abf81deae977c61ee11944382af10bff5eaf8..2aad081d346bd4bc56e008864501b1c2e9348880 100644 (file)
@@ -253,7 +253,7 @@ void
 cxml::Document::read_file (filesystem::path file)
 {
        if (!filesystem::exists (file)) {
-               throw cxml::Error ("XML file does not exist");
+               throw cxml::Error ("XML file " + file.string() + " does not exist");
        }
        
        _parser->parse_file (file.string ());