src/relpipe-out-ini.cpp
branchv_0
changeset 9 42dbdee1d9f0
parent 0 1bb084f84eb9
equal deleted inserted replaced
8:7c85dc9a310b 9:42dbdee1d9f0
    48 		reader->process();
    48 		reader->process();
    49 
    49 
    50 		resultCode = CLI::EXIT_CODE_SUCCESS;
    50 		resultCode = CLI::EXIT_CODE_SUCCESS;
    51 
    51 
    52 	} catch (RelpipeCLIException e) {
    52 	} catch (RelpipeCLIException e) {
    53 		fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessge().c_str());
    53 		fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessage().c_str());
    54 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    54 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    55 		resultCode = e.getExitCode();
    55 		resultCode = e.getExitCode();
    56 	} catch (RelpipeReaderException e) {
    56 	} catch (RelpipeReaderException e) {
    57 		fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessge().c_str());
    57 		fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessage().c_str());
    58 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    58 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    59 		resultCode = CLI::EXIT_CODE_DATA_ERROR;
    59 		resultCode = CLI::EXIT_CODE_DATA_ERROR;
    60 	}
    60 	}
    61 
    61 
    62 	return resultCode;
    62 	return resultCode;