src/relpipe-in-xml.cpp
branchv_0
changeset 4 1363ec0879ca
parent 2 3ab78bf63467
child 6 be83e0f457a8
--- a/src/relpipe-in-xml.cpp	Fri Jan 11 01:13:40 2019 +0100
+++ b/src/relpipe-in-xml.cpp	Fri Jan 11 12:04:45 2019 +0100
@@ -56,6 +56,12 @@
 		fwprintf(stderr, L"Caught xercesc::XMLException\n");
 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
 		resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;
+	} catch (const xercesc::SAXParseException& e) {
+		// TODO: print message
+		// char* message = xercesc::XMLString::transcode(e.getMessage());
+		fwprintf(stderr, L"Caught xercesc::SAXParseException\n");
+		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
+		resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;
 	}
 
 	return resultCode;