From 42c840f83dea61a7c10e5de3f255f5d14ea092e7 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 25 Jan 2015 23:17:08 +0100 Subject: Use context source id, not reader source id --- src/plugins/xml/XmlParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/xml/XmlParser.cpp b/src/plugins/xml/XmlParser.cpp index 17bc470..5ab0c90 100644 --- a/src/plugins/xml/XmlParser.cpp +++ b/src/plugins/xml/XmlParser.cpp @@ -328,7 +328,7 @@ Rooted XmlParser::doParse(CharReader &reader, ParserContext &ctx) XML_Error code = XML_GetErrorCode(&p); std::string msg = std::string{XML_ErrorString(code)}; throw LoggableException{"XML: " + msg, - SourceLocation{reader.getSourceId(), offs}}; + SourceLocation{ctx.getSourceId(), offs}}; } // Abort once there are no more bytes in the stream -- cgit v1.2.3