Skip to content

Commit

Permalink
improve worker key change error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Oct 21, 2020
1 parent 64dc57e commit f6b0de1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/lotus-storage-miner/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -761,11 +761,11 @@ var actorProposeChangeWorker = &cli.Command{

if mi.NewWorker.Empty() {
if mi.Worker == newAddr {
return xerrors.Errorf("worker address already set to %s", newAddr)
return xerrors.Errorf("worker address already set to %s", na)
}
} else {
if mi.NewWorker == newAddr {
return xerrors.Errorf("change to worker address %s already pending", newAddr)
return xerrors.Errorf("change to worker address %s already pending", na)
}
}

Expand Down Expand Up @@ -809,7 +809,7 @@ var actorProposeChangeWorker = &cli.Command{
return err
}
if mi.NewWorker != newAddr {
return fmt.Errorf("Proposed worker address change not reflected on chain: expected '%s', found '%s'", newAddr, mi.NewWorker)
return fmt.Errorf("Proposed worker address change not reflected on chain: expected '%s', found '%s'", na, mi.NewWorker)
}

fmt.Printf("Worker key change to %s successfully proposed.\n", mi.NewWorker)
Expand Down

0 comments on commit f6b0de1

Please sign in to comment.