Improve error message
This commit is contained in:
parent
3e399d09d7
commit
704bd4d191
2 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ let wrapWebContents = function(webContents) {
|
|||
var args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
|
||||
var channel = arguments[0];
|
||||
if (channel == null) {
|
||||
throw new Error('channel must be specified');
|
||||
throw new Error('Missing required channel argument');
|
||||
}
|
||||
return this._send(channel, slice.call(args));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue