src/relpipe-tr-guile.cpp
branchv_0
changeset 23 6ee7a9e311e9
parent 20 dccbfd273a5a
child 26 421608ecc12a
--- a/src/relpipe-tr-guile.cpp	Tue May 07 01:03:21 2019 +0200
+++ b/src/relpipe-tr-guile.cpp	Sun May 26 19:46:47 2019 +0200
@@ -64,6 +64,10 @@
 		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());
 		resultCode = CLI::EXIT_CODE_DATA_ERROR;
+	} catch (GuileException& e) {
+		fwprintf(stderr, L"Caught Guile 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;
 	}
 
 	exit(resultCode);