From eaf624eefc313b3aec0bbf3dbf14896462b34ccd Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 8 Apr 2011 23:21:24 -0400 Subject: [PATCH] Fix eaten error. --- common/locale/en-US/messages.properties | 1 - common/modules/commands.jsm | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/locale/en-US/messages.properties b/common/locale/en-US/messages.properties index 88779c3d..796c02eb 100644 --- a/common/locale/en-US/messages.properties +++ b/common/locale/en-US/messages.properties @@ -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 diff --git a/common/modules/commands.jsm b/common/modules/commands.jsm index eac37255..62c9f26f 100644 --- a/common/modules/commands.jsm +++ b/common/modules/commands.jsm @@ -1377,6 +1377,7 @@ var Commands = Module("commands", { } catch (e) { util.reportError(e); + cmdContext.message = _("error.error", e); } }; @@ -1424,8 +1425,11 @@ 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(","),