mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-18 22:52:29 +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;
|
let err = null;
|
||||||
for (let [command, args] in commands.parseCommands(str.replace(/^'(.*)'$/, "$1"))) {
|
for (let [command, args] in commands.parseCommands(str.replace(/^'(.*)'$/, "$1"))) {
|
||||||
if (command === null)
|
if (command === null)
|
||||||
throw FailedAssertion("E492: Not a " + config.appName + " command: " + str);
|
throw FailedAssertion("E492: Not a " + config.appName + " command: " + args.commandString);
|
||||||
|
|
||||||
if (!silent)
|
if (!silent)
|
||||||
commandline.command = str.replace(/^\s*:\s*/, "");
|
commandline.command = str.replace(/^\s*:\s*/, "");
|
||||||
|
|||||||
Reference in new issue
Block a user