rem: alert("an error occured: " + error); 
add: alert("an error occured: " + error + ", file=" + formatInfo.getFormatFile().path); 
context: function showFormatDialog() {	var formatListBox = document.getElementById("format-list");	var formatId = formatListBox.selectedItem.value;	var formatInfo = this.testManager.findFormatInfo(formatId);		document.getElementById("format-name").value = formatInfo.name;	document.getElementById("delete-button").disabled = formatInfo.save ? false : true;	document.getElementById("rename-button").disabled = formatInfo.save ? false : true;	var configBox = document.getElementById("format-config");	try {		var format = formatInfo.getFormat();	} catch (error) {		alert("an error occured: " + error);		var format = {};	}	var newConfigBox;	if (format.createConfigForm) {		newConfigBox = format.createConfigForm(document);	} else {		newConfigBox = document.createElement("box");		newConfigBox.setAttribute("id", "format-config");		var note = document.createElement("description");		newConfigBox.appendChild(note);		note.appendChild(document.createTextNode("There are no options."));	}	configBox.parentNode.replaceChild(newConfigBox, configBox);	configBox = newConfigBox;	if (format.options) {		for (name in format.options) {			var e = document.getElementById("options_" + name);			if (e) {				var value = this.options["formats." + formatInfo.id + "." + name];				if (value == null) {					value = format.options[name];				}				if (e.checked != undefined) {					e.checked = 'true' == value;				} else {					e.value = value;				}			}		}	}	var self = this;	this.format = format;	this.formatInfo = formatInfo;	configBox.addEventListener("blur", function(event) {								   self.updateFormatOptions();								   /*								   var e = event.target;								   var r;								   if (formatInfo && (r = /^options_(.*)$/.exec(e.id)) != null) {									   self.options["formats." + formatInfo.id + "." + r[1]] = e.value;									   }*/							   }, true);}
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/5d00358e7267ee65850edd6ba988b28ae110bb8f/optionsDialog.js/buggy/src/content/optionsDialog.js