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

Improve the error message when a custom command completer is undefined.

This commit is contained in:
Doug Kearns
2009-08-25 21:45:00 +10:00
parent c958616337
commit 35574698d3

View File

@@ -1009,6 +1009,7 @@ function Commands() //{{{
} }
// TODO: offer completion.ex? // TODO: offer completion.ex?
// : make this config specific
var completeOptionMap = { var completeOptionMap = {
abbreviation: "abbreviation", altstyle: "alternateStyleSheet", abbreviation: "abbreviation", altstyle: "alternateStyleSheet",
bookmark: "bookmark", buffer: "buffer", color: "colorScheme", bookmark: "bookmark", buffer: "buffer", color: "colorScheme",
@@ -1058,7 +1059,7 @@ function Commands() //{{{
} }
catch (e) catch (e)
{ {
// FIXME: should be pushed to the MOW liberator.echo(":" + this.name + " ...");
liberator.echoerr("E117: Unknown function: " + completeOpt); liberator.echoerr("E117: Unknown function: " + completeOpt);
liberator.log(e); liberator.log(e);
return undefined; return undefined;