Skip to content

Commit

Permalink
Merge pull request #6590 from filecoin-project/asr/query-ask-cli
Browse files Browse the repository at this point in the history
Make query-ask CLI more graceful
  • Loading branch information
magik6k committed Jun 24, 2021
2 parents ebd746c + cb4d7cb commit 1c025e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 1c025e4

Please sign in to comment.