src/relpipe-in-yaml.cpp
branchv_0
changeset 10 15a151aa93b1
parent 1 8d2d8f4077af
equal deleted inserted replaced
9:47a22b365f7c 10:15a151aa93b1
    42 		YAMLCommand command;
    42 		YAMLCommand command;
    43 		std::shared_ptr<RelationalWriter> writer(Factory::create(std::cout));
    43 		std::shared_ptr<RelationalWriter> writer(Factory::create(std::cout));
    44 		command.process(cin, writer);
    44 		command.process(cin, writer);
    45 		resultCode = CLI::EXIT_CODE_SUCCESS;
    45 		resultCode = CLI::EXIT_CODE_SUCCESS;
    46 	} catch (RelpipeWriterException& e) {
    46 	} catch (RelpipeWriterException& e) {
    47 		fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessge().c_str());
    47 		fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessage().c_str());
    48 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    48 		fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
    49 		resultCode = CLI::EXIT_CODE_DATA_ERROR;
    49 		resultCode = CLI::EXIT_CODE_DATA_ERROR;
    50 	}
    50 	}
    51 
    51 
    52 	return resultCode;
    52 	return resultCode;