mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 22:33:50 +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
|
// Get and check the command token
|
||||||
var commandName = this.commandTokens[this.nextToken++];
|
var commandName = this.commandTokens[this.nextToken++];
|
||||||
if(commandName.substr(0,2) !== "--") {
|
if(commandName.substr(0,2) !== "--") {
|
||||||
this.callback("Missing command");
|
this.callback("Missing command: " + commandName);
|
||||||
} else {
|
} else {
|
||||||
commandName = commandName.substr(2); // Trim off the --
|
commandName = commandName.substr(2); // Trim off the --
|
||||||
// Accumulate the parameters to the command
|
// Accumulate the parameters to the command
|
||||||
|
Loading…
x
Reference in New Issue
Block a user