summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands.go b/commands.go
index fcf04f1..5ab75ee 100644
--- a/commands.go
+++ b/commands.go
@@ -564,10 +564,10 @@ func (app *App) handleInput(buffer, content string) error {
}
if len(args) < cmd.MinArgs {
- return fmt.Errorf("usage: %s %s", cmdName, cmd.Usage)
+ return fmt.Errorf("usage: %s %s", chosenCMDName, cmd.Usage)
}
if buffer == "" && !cmd.AllowHome {
- return fmt.Errorf("command %q cannot be executed from a server buffer", cmdName)
+ return fmt.Errorf("command %s cannot be executed from a server buffer", chosenCMDName)
}
return cmd.Handle(app, args)