rem: dump("** Error: " + ex + "\n"); 
add: dump("** Error saving element " + i + ": " + ex + "\n"); 
context: function saveSearchTerms(searchTerms, termOwner){    var searchTermElements =        gSearchTermContainer.childNodes;        for (var i = 0; i<searchTermElements.length; i++) {        try {            dump("Saving search element " + i + "\n");            var searchTerm = searchTermElements[i].searchTerm;            if (searchTerm)                searchTermElements[i].save();            else {                // need to create a new searchTerm, and somehow save it to that                dump("Need to create searchterm " + i + "\n");                searchTerm = termOwner.createTerm();                searchTermElements[i].saveTo(searchTerm);                termOwner.appendTerm(searchTerm);            }        } catch (ex) {            dump("** Error: " + ex + "\n");        }    }    // now remove the queued elements    for (var i=0; i<gSearchRemovedTerms.length; i++) {        // this is so nasty, we have to iterate through        // because GetIndexOf is acting funny        var searchTermSupports =            gSearchRemovedTerms[i].QueryInterface(Components.interfaces.nsISupports);        searchTerms.RemoveElement(searchTermSupports);    }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/869d7aeb19b7e5f656853604c3291a13ac1cbabc/searchTermOverlay.js/buggy/mailnews/base/search/resources/content/searchTermOverlay.js