1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 23:07:59 +01:00

Better error messages for multiple command command-lines where one doesn't exist.

This commit is contained in:
Kris Maglione
2010-10-04 14:20:05 -04:00
parent af64937d55
commit 044f6e5784

View File

@@ -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*/, "");