rem: throw new Error("missing X-NSCP-WCAP-SESSION-ID!"); 
add: throw new Components.Exception("missing X-NSCP-WCAP-SESSION-ID!"); 
context:     login_:    function( loginUri, user, pw )    {        if (this.m_sessionId != null) {            this.logout();        }        // currently, xml parsing at an early stage during process startup        // does not work reliably, so use libical parsing for now:        var str = issueSyncRequest(            loginUri.spec + "login.wcap?fmt-out=text%2Fcalendar&user=" +            encodeURIComponent(user) + "&password=" + encodeURIComponent(pw),            null /* receiverFunc */, false /* no logging */ );        var icalRootComp = getIcsService().parseICS( str );        checkWcapIcalErrno( icalRootComp );        var prop = icalRootComp.getFirstProperty( "X-NSCP-WCAP-SESSION-ID" );        if (prop == null)            throw new Error("missing X-NSCP-WCAP-SESSION-ID!");        this.m_sessionId = prop.value;        //         var xml = issueSyncXMLRequest(//             loginUri.spec + "login.wcap?fmt-out=text%2Fxml&user=" +//             encodeURIComponent(user) + "&password=" + encodeURIComponent(pw) );//         checkWcapXmlErrno( xml );//         this.m_sessionId = xml.getElementsByTagName(//             "X-NSCP-WCAP-SESSION-ID" ).item(0).textContent;        this.m_userId = user;        this.log( "WCAP login succeeded." );    },    
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/30d02961047b21c123c6585c71a085e40f3e6fa5/calWcapSession.js/buggy/calendar/providers/wcap/calWcapSession.js