Merge pull request #911 from jsign/fix810
cli: print nicer message when miner hasn't initialized
This commit is contained in:
commit
4ace1fe436
@ -303,6 +303,9 @@ var clientQueryAskCmd = &cli.Command{
|
|||||||
if ret.ExitCode != 0 {
|
if ret.ExitCode != 0 {
|
||||||
return fmt.Errorf("call to GetPeerID was unsuccesful (exit code %d)", ret.ExitCode)
|
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)
|
p, err := peer.IDFromBytes(ret.Return)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user