Bug 1179820 - Log some exceptions caught in the style editor; r=gl

This has been handy for debugging, and it seems fine to simply leave it
in.

MozReview-Commit-ID: 6nm0RxPm4Zq

--HG--
extra : rebase_source : eef8b01de79272c877af1024cff27c0dba2ec672
This commit is contained in:
Tom Tromey 2017-09-29 11:23:58 -06:00
parent 59f931466e
commit 92ad510c94
2 changed files with 2 additions and 0 deletions

View File

@ -264,6 +264,7 @@ StyleEditorUI.prototype = {
try {
yield this._addStyleSheet(sheet);
} catch (e) {
console.error(e);
this.emit("error", { key: LOAD_ERROR });
}
}

View File

@ -297,6 +297,7 @@ StyleSheetEditor.prototype = {
", the editor was destroyed");
console.error(e);
} else {
console.error(e);
this.emit("error", { key: LOAD_ERROR, append: this.styleSheet.href });
throw e;
}