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
|
// Print
|
||||||
select {
|
select {
|
||||||
case <-ch:
|
case <-ch:
|
||||||
|
fmt.Fprintln(cctx.App.Writer, "---------------------")
|
||||||
if err := printInfo(cctx.Context, sim, cctx.App.Writer); err != nil {
|
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.Fprintf(cctx.App.ErrWriter, "ERROR: failed to print info: %s\n", err)
|
||||||
}
|
}
|
||||||
|
fmt.Fprintln(cctx.App.Writer, "---------------------")
|
||||||
case <-cctx.Context.Done():
|
case <-cctx.Context.Done():
|
||||||
return cctx.Err()
|
return cctx.Err()
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user