Browse Source

cli stderr output for Execute

pull/1842/head
rigel rozanski 8 years ago
parent
commit
c76dca0456
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      cli/setup.go

+ 2
- 2
cli/setup.go View File

@ -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


Loading…
Cancel
Save