File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -149,14 +149,21 @@ public void run() {
149
149
while ((c = reader .read ()) != -1 )
150
150
System .err .print ((char ) c );
151
151
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
+ }
153
155
}
154
156
};
155
157
thread .start ();
156
158
int res = p .waitFor ();
157
159
thread .join ();
160
+ // if(res != 0){
161
+ // outputArea.setText("<html><font color=red>Decode Failed</font></html>");
162
+ // }
158
163
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
+ }
160
167
return -1 ;
161
168
}
162
169
@@ -166,7 +173,6 @@ public void run() {
166
173
try {
167
174
if (listenOnProcess (arguments ) != 0 ){
168
175
editor .statusError ("Decode Failed" );
169
- outputArea .setText ("<html><font color=red>Decode Failed</font></html>" );
170
176
} else {
171
177
editor .statusNotice ("Decode Success" );
172
178
outputArea .setText (outputText );
You can’t perform that action at this time.
0 commit comments