fix(lotus-sim): guard info with dashes
This commit is contained in:
parent
4a80c83533
commit
5766002370
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user