Mercurial Hosting > luan
comparison src/luan/modules/IoLuan.java @ 1666:8f38abaf779f
process error handling
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 07 May 2022 23:23:03 -0600 |
parents | d6a50ed9604f |
children | 2dbcc8360a3e |
comparison
equal
deleted
inserted
replaced
1665:eb89db694225 | 1666:8f38abaf779f |
---|---|
579 IoUtils.waitFor(proc); | 579 IoUtils.waitFor(proc); |
580 } | 580 } |
581 | 581 |
582 @Override public String read_text() throws IOException, LuanException { | 582 @Override public String read_text() throws IOException, LuanException { |
583 String s = super.read_text(); | 583 String s = super.read_text(); |
584 wait_for(); | 584 try { |
585 wait_for(); | |
586 } catch(IoUtils.ProcException e) { | |
587 throw new LuanException(s+e.getMessage(),e); | |
588 } | |
585 return s; | 589 return s; |
586 } | 590 } |
587 } | 591 } |
588 | 592 |
589 public static final class LuanOs extends BaseOs { | 593 public static final class LuanOs extends BaseOs { |