47 CLICommand command; |
47 CLICommand command; |
48 std::shared_ptr<RelationalWriter> writer(Factory::create(std::cout)); |
48 std::shared_ptr<RelationalWriter> writer(Factory::create(std::cout)); |
49 command.process(configuration, writer); |
49 command.process(configuration, writer); |
50 resultCode = CLI::EXIT_CODE_SUCCESS; |
50 resultCode = CLI::EXIT_CODE_SUCCESS; |
51 } catch (RelpipeWriterException& e) { |
51 } catch (RelpipeWriterException& e) { |
52 fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessge().c_str()); |
52 fwprintf(stderr, L"Caught Writer exception: %ls\n", e.getMessage().c_str()); |
53 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
53 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
54 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
54 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
55 } catch (RelpipeCLIException& e) { |
55 } catch (RelpipeCLIException& e) { |
56 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessge().c_str()); |
56 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessage().c_str()); |
57 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
57 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
58 resultCode = e.getExitCode(); |
58 resultCode = e.getExitCode(); |
59 } |
59 } |
60 |
60 |
61 return resultCode; |
61 return resultCode; |