Merge pull request #6590 from filecoin-project/asr/query-ask-cli
Make query-ask CLI more graceful
This commit is contained in:
commit
1c025e49c4
@ -1759,7 +1759,7 @@ var clientQueryAskCmd = &cli.Command{
|
||||
return xerrors.Errorf("failed to get peerID for miner: %w", err)
|
||||
}
|
||||
|
||||
if *mi.PeerId == peer.ID("SETME") {
|
||||
if mi.PeerId == nil || *mi.PeerId == peer.ID("SETME") {
|
||||
return fmt.Errorf("the miner hasn't initialized yet")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user