mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-14 15:51:20 +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 {
|
if err != nil {
|
||||||
// TODO: something cooler with log-levels
|
// TODO: something cooler with log-levels
|
||||||
if viper.GetBool(TraceFlag) {
|
if viper.GetBool(TraceFlag) {
|
||||||
fmt.Printf("ERROR: %+v\n", err)
|
fmt.Fprintf(os.Stderr, "ERROR: %+v\n", err)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("ERROR:", err.Error())
|
fmt.Fprintf(os.Stderr, "ERROR: %v\n", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user