src/relpipe-out-yaml.cpp
branchv_0
changeset 3 1e9a07d8a406
parent 0 c52ca92aa593
equal deleted inserted replaced
2:6839c85a9621 3:1e9a07d8a406
    44 		reader->process();
    44 		reader->process();
    45 
    45 
    46 		resultCode = CLI::EXIT_CODE_SUCCESS;
    46 		resultCode = CLI::EXIT_CODE_SUCCESS;
    47 
    47 
    48 	} catch (RelpipeCLIException e) {
    48 	} catch (RelpipeCLIException e) {
    49 		fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessge().c_str());
    49 		fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessage().c_str());
    50 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    50 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    51 		resultCode = e.getExitCode();
    51 		resultCode = e.getExitCode();
    52 	} catch (RelpipeReaderException e) {
    52 	} catch (RelpipeReaderException e) {
    53 		fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessge().c_str());
    53 		fwprintf(stderr, L"Caught Reader 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 = CLI::EXIT_CODE_DATA_ERROR;
    55 		resultCode = CLI::EXIT_CODE_DATA_ERROR;
    56 	}
    56 	}
    57 
    57 
    58 	return resultCode;
    58 	return resultCode;