mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-21 09:15:49 +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;
|
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