diff --git a/cli/setup.go b/cli/setup.go index 21b29a491..30fb5e78e 100644 --- a/cli/setup.go +++ b/cli/setup.go @@ -93,9 +93,9 @@ func (e Executor) Execute() error { if err != nil { // TODO: something cooler with log-levels if viper.GetBool(TraceFlag) { - fmt.Printf("ERROR: %+v\n", err) + fmt.Fprintf(os.Stderr, "ERROR: %+v\n", err) } else { - fmt.Println("ERROR:", err.Error()) + fmt.Fprintf(os.Stderr, "ERROR: %v\n", err) } } return err