56 reader->process(); |
56 reader->process(); |
57 |
57 |
58 resultCode = CLI::EXIT_CODE_SUCCESS; |
58 resultCode = CLI::EXIT_CODE_SUCCESS; |
59 |
59 |
60 } catch (RelpipeCLIException& e) { |
60 } catch (RelpipeCLIException& e) { |
61 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessge().c_str()); |
61 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessage().c_str()); |
62 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
62 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
63 resultCode = e.getExitCode(); |
63 resultCode = e.getExitCode(); |
64 } catch (RelpipeReaderException& e) { |
64 } catch (RelpipeReaderException& e) { |
65 fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessge().c_str()); |
65 fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessage().c_str()); |
66 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
66 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
67 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
67 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
68 } |
68 } |
69 |
69 |
70 return resultCode; |
70 return resultCode; |