src/relpipe-in-fstab.cpp
branchv_0
changeset 26 b4c4c7f937e9
parent 25 f71eb7aefd25
equal deleted inserted replaced
25:f71eb7aefd25 26:b4c4c7f937e9
    69 			command.process(std::cin, writer, configuration);
    69 			command.process(std::cin, writer, configuration);
    70 		}
    70 		}
    71 
    71 
    72 		resultCode = CLI::EXIT_CODE_SUCCESS;
    72 		resultCode = CLI::EXIT_CODE_SUCCESS;
    73 	} catch (RelpipeCLIException e) {
    73 	} catch (RelpipeCLIException e) {
    74 		fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessge().c_str());
    74 		fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessage().c_str());
    75 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    75 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    76 		resultCode = e.getExitCode();
    76 		resultCode = e.getExitCode();
    77 	} catch (RelpipeWriterException e) {
    77 	} catch (RelpipeWriterException e) {
    78 		fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessge().c_str());
    78 		fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessage().c_str());
    79 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    79 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    80 		resultCode = CLI::EXIT_CODE_DATA_ERROR;
    80 		resultCode = CLI::EXIT_CODE_DATA_ERROR;
    81 	}
    81 	}
    82 
    82 
    83 	return resultCode;
    83 	return resultCode;