aboutsummaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
Diffstat (limited to 'src/support')
-rw-r--r--src/support/error_capacitor.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/support/error_capacitor.cc b/src/support/error_capacitor.cc
index 1a536ed..e624cd1 100644
--- a/src/support/error_capacitor.cc
+++ b/src/support/error_capacitor.cc
@@ -11,9 +11,18 @@
namespace {
+using InputXSLT::XercesStringGuard;
+
inline std::string getMessage(const xercesc::SAXParseException& exception) {
- return std::string(
- *InputXSLT::XercesStringGuard<char>(exception.getMessage())
+ return (
+ std::string(*XercesStringGuard<char>(exception.getMessage()))
+ + ". (Occurred in entity '"
+ + std::string(*XercesStringGuard<char>(exception.getSystemId()))
+ + "', at line "
+ + std::to_string(exception.getLineNumber())
+ + ", column "
+ + std::to_string(exception.getColumnNumber())
+ + ".)"
);
}