1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 17:27:58 +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?
// : 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;