50 |
50 |
51 // } else { |
51 // } else { |
52 // throw RelpipeCLIException(L"Missing command…", CLI::EXIT_CODE_BAD_SYNTAX); |
52 // throw RelpipeCLIException(L"Missing command…", CLI::EXIT_CODE_BAD_SYNTAX); |
53 // } |
53 // } |
54 } catch (RelpipeCLIException e) { |
54 } catch (RelpipeCLIException e) { |
55 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessge().c_str()); |
55 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessage().c_str()); |
56 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
56 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
57 resultCode = e.getExitCode(); |
57 resultCode = e.getExitCode(); |
58 } catch (RelpipeReaderException e) { |
58 } catch (RelpipeReaderException e) { |
59 fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessge().c_str()); |
59 fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessage().c_str()); |
60 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
60 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
61 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
61 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
62 } |
62 } |
63 |
63 |
64 return resultCode; |
64 return resultCode; |