src/relpipe-in-xml.cpp
branchv_0
changeset 21 657a4ee574a7
parent 15 177321664baf
equal deleted inserted replaced
20:ad743b4aea49 21:657a4ee574a7
    45 	try {
    45 	try {
    46 		XMLCommand command;
    46 		XMLCommand command;
    47 		command.process(cin, cout);
    47 		command.process(cin, cout);
    48 		resultCode = CLI::EXIT_CODE_SUCCESS;
    48 		resultCode = CLI::EXIT_CODE_SUCCESS;
    49 	} catch (RelpipeWriterException& e) {
    49 	} catch (RelpipeWriterException& e) {
    50 		fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessge().c_str());
    50 		fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessage().c_str());
    51 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    51 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    52 		resultCode = CLI::EXIT_CODE_DATA_ERROR;
    52 		resultCode = CLI::EXIT_CODE_DATA_ERROR;
    53 	} catch (const xercesc::XMLException& e) {
    53 	} catch (const xercesc::XMLException& e) {
    54 		XercesStringConvertor xConvertor;
    54 		XercesStringConvertor xConvertor;
    55 		fwprintf(stderr, L"Caught xercesc::XMLException: %ls\n", xConvertor.toString(e.getMessage()).c_str());
    55 		fwprintf(stderr, L"Caught xercesc::XMLException: %ls\n", xConvertor.toString(e.getMessage()).c_str());