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