rem: if (errno != expectedErrno) throw getWcapErrorCode(errno); 
add: if (errno != expectedErrno) { var rc; try { rc = getWcapErrorCode(errno); } catch (exc) { throw new Components.Exception( "No WCAP error no.", Components.results.NS_ERROR_INVALID_ARG ); } throw new Components.Exception( wcapErrorToString(rc), rc ); } 
context: function checkWcapErrno( errno, expectedErrno ){    if (expectedErrno == undefined)        expectedErrno = 0; // i.e. Command successful.    if (errno != expectedErrno)        throw getWcapErrorCode(errno);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/88a347723b7a4696ebc1ec2a320d6f1fe7ff1a0b/calWcapErrors.js/clean/calendar/providers/wcap/calWcapErrors.js