bug 396307 - Preference bindings don't report exceptions in user-defined event handlers to the Error Console

fix by switching from dump()ing the exception in the catch clause to using Components.utils.reportError()
r=gavin, a=mconnor
This commit is contained in:
asqueella%gmail.com 2007-09-22 19:51:10 +00:00
Родитель a395354c99
Коммит bb47a278c0
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -52,7 +52,7 @@
aPreference.dispatchEvent(event);
}
catch (e) {
dump(e);
Components.utils.reportError(e);
}
]]>
</body>
@ -373,7 +373,7 @@
rv = f(event);
}
catch (e) {
dump(e);
Components.utils.reportError(e);
}
}
var val = rv !== undefined ? rv : (this.instantApply ? this.valueFromPreferences : this.value);
@ -424,7 +424,7 @@
return rv;
}
catch (e) {
dump(e);
Components.utils.reportError(e);
}
}