diff src/goodjava/io/IoUtils.java @ 1547:f24a9ba7551e

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 24 Sep 2020 15:33:56 -0600
parents 0ba144491a42
children 736ec76bbf42
line wrap: on
line diff
--- a/src/goodjava/io/IoUtils.java	Tue Sep 22 21:41:22 2020 -0600
+++ b/src/goodjava/io/IoUtils.java	Thu Sep 24 15:33:56 2020 -0600
@@ -113,7 +113,9 @@
 		int exitVal = proc.exitValue();
 		if( exitVal != 0 ) {
 			StringWriter sw = new StringWriter();
-			copyAll( new InputStreamReader(proc.getInputStream()), sw );
+			try {
+				copyAll( new InputStreamReader(proc.getInputStream()), sw );
+			} catch(IOException e) {}
 			copyAll( new InputStreamReader(proc.getErrorStream()), sw );
 			String error = sw.toString();
 			throw new ProcException(error);