1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

Improve error message for missing commands

This commit is contained in:
Jermolene 2014-11-09 14:49:33 +00:00
parent 769842c4db
commit 2c5d241d96

View File

@ -58,7 +58,7 @@ Commander.prototype.executeNextCommand = function() {
// Get and check the command token
var commandName = this.commandTokens[this.nextToken++];
if(commandName.substr(0,2) !== "--") {
this.callback("Missing command");
this.callback("Missing command: " + commandName);
} else {
commandName = commandName.substr(2); // Trim off the --
// Accumulate the parameters to the command