mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 08:58:00 +01:00
Fix eaten error.
This commit is contained in:
@@ -78,7 +78,6 @@ command.invalidOptArg-2 = Invalid argument for option %S: %S
|
||||
command.invalidOptTypeArg-3 = Invalid argument for %S option %S: %S
|
||||
command.parsing-1 = Error parsing arguments: %S
|
||||
command.none = No user-defined commands found
|
||||
command.unknownCompleter-1 = E117: Unknown function: %S
|
||||
command.exists = E174: Command already exists: add ! to replace it
|
||||
command.noPrevious = E30: No previous command line
|
||||
command.noRange = E481: No range allowed
|
||||
|
||||
@@ -1377,6 +1377,7 @@ var Commands = Module("commands", {
|
||||
}
|
||||
catch (e) {
|
||||
util.reportError(e);
|
||||
cmdContext.message = _("error.error", e);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1424,9 +1425,12 @@ var Commands = Module("commands", {
|
||||
return context.completions = result;
|
||||
};
|
||||
}
|
||||
else
|
||||
else {
|
||||
util.assert(set.has(config.completers, completer),
|
||||
_("command.unknownCompleter", completer));
|
||||
completerFunc = function (context) modules.completion.closure[config.completers[completer]](context);
|
||||
}
|
||||
}
|
||||
|
||||
let added = args["-group"].add(cmd.split(","),
|
||||
args["-description"],
|
||||
|
||||
Reference in New Issue
Block a user