mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-24 20:36:56 +00:00
Improve error message for missing commands
This commit is contained in:
parent
769842c4db
commit
2c5d241d96
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user