Skip to content

Commit

Permalink
Make query-ask CLI more graceful
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Jun 24, 2021
1 parent 84dbcb6 commit cb4d7cb
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 cb4d7cb

Please sign in to comment.