error check
This commit is contained in:
parent
6ba5c5d0e1
commit
27858506ff
@ -889,6 +889,9 @@ var slashConsensusFault = &cli.Command{
|
|||||||
BlockHeader1: bh1,
|
BlockHeader1: bh1,
|
||||||
BlockHeader2: bh2,
|
BlockHeader2: bh2,
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if cctx.String("miner") == "" {
|
if cctx.String("miner") == "" {
|
||||||
return xerrors.Errorf("--miner flag is required")
|
return xerrors.Errorf("--miner flag is required")
|
||||||
|
Loading…
Reference in New Issue
Block a user