diff --git a/cmd/lotus-shed/msg.go b/cmd/lotus-shed/msg.go index 6562e156a..c9cab631e 100644 --- a/cmd/lotus-shed/msg.go +++ b/cmd/lotus-shed/msg.go @@ -64,7 +64,11 @@ var msgCmd = &cli.Command{ // Print the execution trace and receipt color.Green("Execution trace:") - fmt.Println(res.ExecutionTrace) + trace, err := json.MarshalIndent(res.ExecutionTrace, "", " ") + if err != nil { + return xerrors.Errorf("marshaling execution trace: %w", err) + } + fmt.Println(string(trace)) fmt.Println() color.Green("Receipt:") fmt.Printf("Exit code: %d\n", res.MsgRct.ExitCode)