rem:  var msg = "Unknown error"; switch ( errorCode ) { default: msg += " [" + errorCode + "]\n"; 
add:  dialog.error = true;        var msg; switch ( parseInt( errorCode.split(" ")[0] ) ) {  case Components.interfaces.nsIStreamTransferOperation.kOpWrite : case Components.interfaces.nsIStreamTransferOperation.kOpAsyncWrite : case Components.interfaces.nsIStreamTransferOperation.kOpOpenOutputStream : case Components.interfaces.nsIStreamTransferOperation.kOpCreateTransport : case Components.interfaces.nsIStreamTransferOperation.kOpOutputClose : case Components.interfaces.nsIStreamTransferOperation.kOpOutputCancel :  switch ( parseInt( errorCode.split(" ")[2] ) ) { case Components.interfaces.nsIStreamTransferOperation.kReasonAccessError :  msg = getString( "accessErrorMsg" ); break;  case Components.interfaces.nsIStreamTransferOperation.kReasonDiskFull :  msg = getString( "diskFullMsg" ); break;  default :  msg = getString( "writeErrorMsg" ); break; } break;   default :  msg = getString( "readErrorMsg" ); 
context: function onError( errorCode ) {    // XXX - l10n    var msg = "Unknown error";    switch ( errorCode ) {        default:            msg += " [" + errorCode + "]\n";            break;    }    alert( msg );    window.close();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/5a7112f3dd04403d5e898b73570153b0714ab350/downloadProgress.js/clean/xpfe/components/xfer/resources/downloadProgress.js