fix(lotus-sim): guard info with dashes

This commit is contained in:
Steven Allen 2021-06-09 21:31:32 -07:00
parent 4a80c83533
commit 5766002370

View File

@ -54,9 +54,11 @@ var runSimCommand = &cli.Command{
// Print
select {
case <-ch:
fmt.Fprintln(cctx.App.Writer, "---------------------")
if err := printInfo(cctx.Context, sim, cctx.App.Writer); err != nil {
fmt.Fprintf(cctx.App.ErrWriter, "ERROR: failed to print info: %s\n", err)
}
fmt.Fprintln(cctx.App.Writer, "---------------------")
case <-cctx.Context.Done():
return cctx.Err()
default: