51 reader->process(); |
51 reader->process(); |
52 |
52 |
53 resultCode = CLI::EXIT_CODE_SUCCESS; |
53 resultCode = CLI::EXIT_CODE_SUCCESS; |
54 |
54 |
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 } catch (RelpipeReaderException e) { |
59 } catch (RelpipeReaderException e) { |
60 fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessge().c_str()); |
60 fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessage().c_str()); |
61 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
61 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
62 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
62 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
63 } |
63 } |
64 |
64 |
65 return resultCode; |
65 return resultCode; |