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