|
|
@ -67,9 +67,10 @@ public class PatCommand extends YoshiCommand { |
|
|
|
outPath); |
|
|
|
|
|
|
|
Process p = pb.start(); |
|
|
|
Stream<String> error = new BufferedReader(new InputStreamReader(p.getErrorStream())).lines(); |
|
|
|
if (error.count() > 0) { |
|
|
|
Logger.log(error.collect(Collectors.joining()), Logger.Type.ERROR); |
|
|
|
String error = new BufferedReader(new InputStreamReader(p.getErrorStream())).lines().collect( |
|
|
|
Collectors.joining()); |
|
|
|
if (error.length() > 0) { |
|
|
|
Logger.log(error, Logger.Type.ERROR); |
|
|
|
} |
|
|
|
p.waitFor(); |
|
|
|
System.out.println(outPath); |
|
|
|