fix output of mpool pending to be usable
This commit is contained in:
parent
1f9b3755bd
commit
ec3dd7070f
@ -1,6 +1,7 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"gopkg.in/urfave/cli.v2"
|
||||
@ -32,7 +33,11 @@ var mpoolPending = &cli.Command{
|
||||
}
|
||||
|
||||
for _, msg := range msgs {
|
||||
fmt.Println(msg)
|
||||
out, err := json.MarshalIndent(msg, "", " ")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Println(string(out))
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user