Mercurial Hosting > luan
comparison src/luan/modules/IoLuan.java @ 1107:590437ce0be3
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 04 Jul 2017 02:41:03 -0600 |
parents | 27bf094f0ae3 |
children | e8fc6712b468 |
comparison
equal
deleted
inserted
replaced
1106:151dc95f5e73 | 1107:590437ce0be3 |
---|---|
814 throw new RuntimeException(e); | 814 throw new RuntimeException(e); |
815 } | 815 } |
816 int exitVal = proc.exitValue(); | 816 int exitVal = proc.exitValue(); |
817 if( exitVal != 0 ) { | 817 if( exitVal != 0 ) { |
818 Reader err = new InputStreamReader(proc.getErrorStream()); | 818 Reader err = new InputStreamReader(proc.getErrorStream()); |
819 String error = "error in: "+cmd+"\n"+Utils.readAll(err); | 819 String error = "exit value "+exitVal+" in: "+cmd+"\n"+Utils.readAll(err); |
820 err.close(); | 820 err.close(); |
821 throw new LuanException(error); | 821 throw new LuanException(error); |
822 } | 822 } |
823 } | 823 } |
824 | 824 |