#101 event service edited
This commit is contained in:
parent
e6dc2abdd9
commit
db3252d822
@ -41,6 +41,12 @@ public class LatexService {
|
|||||||
Process process = processBuilder.start();
|
Process process = processBuilder.start();
|
||||||
InputStreamReader inputStreamReader = new InputStreamReader(process.getInputStream());
|
InputStreamReader inputStreamReader = new InputStreamReader(process.getInputStream());
|
||||||
|
|
||||||
|
try (BufferedReader bufferedReader = new BufferedReader(inputStreamReader)) {
|
||||||
|
while ((bufferedReader.readLine()) != null) {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int exitCode = process.waitFor();
|
int exitCode = process.waitFor();
|
||||||
if (exitCode != 0) {
|
if (exitCode != 0) {
|
||||||
errorMessage = message + " Exit value of the process: " + exitCode;
|
errorMessage = message + " Exit value of the process: " + exitCode;
|
||||||
|
Loading…
Reference in New Issue
Block a user