changeset 1666:8f38abaf779f

process error handling
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 07 May 2022 23:23:03 -0600
parents eb89db694225
children c55373c3a0ce
files src/luan/modules/IoLuan.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r eb89db694225 -r 8f38abaf779f src/luan/modules/IoLuan.java
--- a/src/luan/modules/IoLuan.java	Fri May 06 18:51:48 2022 -0600
+++ b/src/luan/modules/IoLuan.java	Sat May 07 23:23:03 2022 -0600
@@ -581,7 +581,11 @@
 
 		@Override public String read_text() throws IOException, LuanException {
 			String s = super.read_text();
-			wait_for();
+			try {
+				wait_for();
+			} catch(IoUtils.ProcException e) {
+				throw new LuanException(s+e.getMessage(),e);
+			}
 			return s;
 		}
 	}