We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d15dd3 commit 7c0c4e9Copy full SHA for 7c0c4e9
lib/repl.js
@@ -1447,7 +1447,7 @@ REPLServer.prototype.defineCommand = function(keyword, cmd) {
1447
if (typeof cmd === 'function') {
1448
cmd = { action: cmd };
1449
} else if (typeof cmd.action !== 'function') {
1450
- throw new ERR_INVALID_ARG_TYPE('action', 'Function', cmd.action);
+ throw new ERR_INVALID_ARG_TYPE('cmd.action', 'Function', cmd.action);
1451
}
1452
this.commands[keyword] = cmd;
1453
};
0 commit comments