Mercurial Hosting > luan
changeset 1547:f24a9ba7551e
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 24 Sep 2020 15:33:56 -0600 |
parents | 2b4471d310b3 |
children | 736ec76bbf42 |
files | src/goodjava/io/IoUtils.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
diff -r 2b4471d310b3 -r f24a9ba7551e src/goodjava/io/IoUtils.java --- 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);