diff --git a/xpfe/components/xfer/resources/downloadProgress.js b/xpfe/components/xfer/resources/downloadProgress.js index 2ebb24ae76aa..586ef81f049e 100644 --- a/xpfe/components/xfer/resources/downloadProgress.js +++ b/xpfe/components/xfer/resources/downloadProgress.js @@ -343,14 +343,9 @@ function onError( errorCode ) { var msg = "Unknown error"; switch ( errorCode ) { default: + msg += " [" + errorCode + "]\n"; break; } alert( msg ); - try { - window.close(); - } catch ( exception ) { - } - dump( "Error closing dialog\n" ); - onStatus( "Error. Press Close button to close dialog." ); - dialog.cancel.childNodes[0].nodeValue = "Close"; + window.close(); }