diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-10-27 13:31:03 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-10-27 13:33:04 +0200 |
commit | ef8780db236de1487aefe025f426d47da7203b4c (patch) | |
tree | 741694a40279abf1b35ce4692c05f7b3ea1c078e /commands.go | |
parent | Sync screen during resize (diff) |
Show the full command name on user error
Diffstat (limited to 'commands.go')
-rw-r--r-- | commands.go | 4 |
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) |