From c24c3fdecf45a0378f8ffdf07f3a8c8e82f0a371 Mon Sep 17 00:00:00 2001 From: 5ouma <101255979+5ouma@users.noreply.github.com> Date: Fri, 8 Sep 2023 21:36:58 +0900 Subject: [PATCH] [revert] Crude change of `c.ErrPrefix()` Since `cmd` is `nil` or same as `c`. --- command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.go b/command.go index 523cb57e2..6866f7d0f 100644 --- a/command.go +++ b/command.go @@ -1070,7 +1070,7 @@ func (c *Command) ExecuteC() (cmd *Command, err error) { c = cmd } if !c.SilenceErrors { - c.PrintErrln(cmd.ErrPrefix(), err.Error()) + c.PrintErrln(c.ErrPrefix(), err.Error()) c.PrintErrf("Run '%v --help' for usage.\n", c.CommandPath()) } return c, err