mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
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:
parent
59f931466e
commit
92ad510c94
@ -264,6 +264,7 @@ StyleEditorUI.prototype = {
|
||||
try {
|
||||
yield this._addStyleSheet(sheet);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
this.emit("error", { key: LOAD_ERROR });
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user