Skip to content

Commit 349d17e

Browse files
committed
Add some more debug
1 parent f52fbec commit 349d17e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/EspExceptionDecoder.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,21 @@ public void run() {
149149
while ((c = reader.read()) != -1)
150150
System.err.print((char) c);
151151
reader.close();
152-
} catch (Exception e){}
152+
} catch (Exception e){
153+
outputArea.setText("<html><font color=red><b>Run Exception:</b> "+e.getMessage()+"</font></html>");
154+
}
153155
}
154156
};
155157
thread.start();
156158
int res = p.waitFor();
157159
thread.join();
160+
// if(res != 0){
161+
// outputArea.setText("<html><font color=red>Decode Failed</font></html>");
162+
// }
158163
return res;
159-
} catch (Exception e){}
164+
} catch (Exception e){
165+
outputArea.setText("<html><font color=red><b>Decode Exception:</b> "+e.getMessage()+"</font></html>");
166+
}
160167
return -1;
161168
}
162169

@@ -166,7 +173,6 @@ public void run() {
166173
try {
167174
if(listenOnProcess(arguments) != 0){
168175
editor.statusError("Decode Failed");
169-
outputArea.setText("<html><font color=red>Decode Failed</font></html>");
170176
} else {
171177
editor.statusNotice("Decode Success");
172178
outputArea.setText(outputText);

0 commit comments

Comments
 (0)