43 reader->process(); |
43 reader->process(); |
44 |
44 |
45 resultCode = CLI::EXIT_CODE_SUCCESS; |
45 resultCode = CLI::EXIT_CODE_SUCCESS; |
46 |
46 |
47 } catch (RelpipeCLIException e) { |
47 } catch (RelpipeCLIException e) { |
48 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessge().c_str()); |
48 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessage().c_str()); |
49 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
49 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
50 resultCode = e.getExitCode(); |
50 resultCode = e.getExitCode(); |
51 } catch (RelpipeReaderException e) { |
51 } catch (RelpipeReaderException e) { |
52 fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessge().c_str()); |
52 fwprintf(stderr, L"Caught Reader 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 } |
55 } |
56 |
56 |
57 return resultCode; |
57 return resultCode; |