cli: print nicer message when miner hasn't initialized
Signed-off-by: jsign <jsign.uy@gmail.com>
This commit is contained in:
parent
71011d03fe
commit
ac1875f040
@ -299,6 +299,9 @@ var clientQueryAskCmd = &cli.Command{
|
||||
if ret.ExitCode != 0 {
|
||||
return fmt.Errorf("call to GetPeerID was unsuccesful (exit code %d)", ret.ExitCode)
|
||||
}
|
||||
if peer.ID(ret.Return) == peer.ID("SETME") {
|
||||
return fmt.Errorf("the miner hasn't initialized yet")
|
||||
}
|
||||
|
||||
p, err := peer.IDFromBytes(ret.Return)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user