From 35574698d3204b676fa395ca54ae0313dfd5fdc6 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 25 Aug 2009 21:45:00 +1000 Subject: [PATCH] Improve the error message when a custom command completer is undefined. --- common/content/commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/content/commands.js b/common/content/commands.js index 4b7b005c..8aebb2bc 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -1009,6 +1009,7 @@ function Commands() //{{{ } // TODO: offer completion.ex? + // : make this config specific var completeOptionMap = { abbreviation: "abbreviation", altstyle: "alternateStyleSheet", bookmark: "bookmark", buffer: "buffer", color: "colorScheme", @@ -1058,7 +1059,7 @@ function Commands() //{{{ } catch (e) { - // FIXME: should be pushed to the MOW + liberator.echo(":" + this.name + " ..."); liberator.echoerr("E117: Unknown function: " + completeOpt); liberator.log(e); return undefined;