Added uncaught exception handling for background threads
This commit is contained in:
parent
2370df4567
commit
b99b81ff89
6 changed files with 66 additions and 10 deletions
|
@ -68,9 +68,10 @@ public class ModPatchDialog extends ProgressDialog implements ModPatchObserver {
|
|||
super.setTaskOutcome( outcome, e );
|
||||
if ( !this.isShowing() ) return;
|
||||
|
||||
if ( succeeded == true )
|
||||
if ( succeeded == true ) {
|
||||
setStatusText( "Patching completed." );
|
||||
else
|
||||
} else {
|
||||
setStatusText( String.format( "Patching failed: %s", e ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue