summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2009-08-25 21:45:00 +1000
committerDoug Kearns <dougkearns@gmail.com>2009-08-27 14:46:31 +1000
commit35574698d3204b676fa395ca54ae0313dfd5fdc6 (patch)
treea283a4b23388834aca776a421db93bfd9620bba8
parentc9586163372a4afdb77816bdd6f6e80bbbf57634 (diff)
downloadpentadactyl-35574698d3204b676fa395ca54ae0313dfd5fdc6.tar.gz
Improve the error message when a custom command completer is undefined.
-rw-r--r--common/content/commands.js3
1 files changed, 2 insertions, 1 deletions
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;