mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:48:00 +01:00
Better error messages for multiple command command-lines where one doesn't exist.
This commit is contained in:
@@ -356,7 +356,7 @@ const Dactyl = Module("dactyl", {
|
||||
let err = null;
|
||||
for (let [command, args] in commands.parseCommands(str.replace(/^'(.*)'$/, "$1"))) {
|
||||
if (command === null)
|
||||
throw FailedAssertion("E492: Not a " + config.appName + " command: " + str);
|
||||
throw FailedAssertion("E492: Not a " + config.appName + " command: " + args.commandString);
|
||||
|
||||
if (!silent)
|
||||
commandline.command = str.replace(/^\s*:\s*/, "");
|
||||
|
||||
Reference in New Issue
Block a user