mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-11 22:37:11 +00:00
cli stderr output for Execute
This commit is contained in:
parent
462243e31a
commit
c76dca0456
@ -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…
x
Reference in New Issue
Block a user