From 59bb8be6ad5c61abe3d9231a4a2ad2065140292b Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Mon, 24 Jun 2019 08:29:37 +0100 Subject: [PATCH] Fix stderr printing functions Follow-up of #822 --- command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command.go b/command.go index 42e500de..5238f134 100644 --- a/command.go +++ b/command.go @@ -1150,12 +1150,12 @@ func (c *Command) PrintErr(i ...interface{}) { // PrintErrln is a convenience method to Println to the defined Err output, fallback to Stderr if not set. func (c *Command) PrintErrln(i ...interface{}) { - c.Print(fmt.Sprintln(i...)) + c.PrintErr(fmt.Sprintln(i...)) } // PrintErrf is a convenience method to Printf to the defined Err output, fallback to Stderr if not set. func (c *Command) PrintErrf(format string, i ...interface{}) { - c.Print(fmt.Sprintf(format, i...)) + c.PrintErr(fmt.Sprintf(format, i...)) } // CommandPath returns the full path to this command.