mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 00:52:32 +02:00
Better error messages for multiple command command-lines where one doesn't exist.
This commit is contained in:
1 parent
af64937d55
commit
044f6e5784
1 file changed
+1
-1
@@ -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