--- a/src/relpipe-tr-awk.cpp Sat May 25 11:36:31 2019 +0200
+++ b/src/relpipe-tr-awk.cpp Sat May 25 17:00:51 2019 +0200
@@ -63,6 +63,10 @@
fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessge().c_str());
fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
resultCode = e.getExitCode();
+ } catch (AwkException& e) {
+ fwprintf(stderr, L"Caught AWK exception: %ls\n", e.getMessge().c_str());
+ fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());
+ resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;
} catch (RelpipeReaderException& e) {
fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessge().c_str());
fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());