Expand error message

This commit is contained in:
Kevin Sawicki 2016-02-09 13:51:35 -08:00
parent 674af4211c
commit bad4816976
2 changed files with 2 additions and 2 deletions

View file

@ -409,7 +409,7 @@ var registerWebViewElement = function() {
if (internal.webContents) {
return internal.webContents[m].apply(internal.webContents, args);
} else {
throw new Error(`Cannot call ${m} before the dom-ready event is emitted`);
throw new Error(`Cannot call ${m} because the webContents is unavailable. The WebView must be attached to the DOM and the dom-ready event emmitted before this method can be called.`);
}
};
};