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; |