src/relpipe-tr-awk.cpp
branchv_0
changeset 28 4fdbe30d8c58
parent 13 b74001992ec3
child 35 eafffeea6a3e
--- 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());