Added uncaught exception handling for background threads

This commit is contained in:
Vhati 2014-09-27 03:02:48 -04:00
parent 2370df4567
commit b99b81ff89
6 changed files with 66 additions and 10 deletions

View file

@ -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 ) );
}
}
}