Skip to content

Commit

Permalink
encode twin id in verification error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Nawara committed Oct 30, 2024
1 parent 1f53356 commit 67eb75e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grid-client/deployer/tf_plugin_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,13 @@ func NewTFPluginClient(
// make sure the account used is verified
check := func() error {
if !isTwinVerified(twinID, tfPluginClient.Network) {
return fmt.Errorf("user is not verified")
return fmt.Errorf("user with twin id %d is not verified", twinID)
}
return nil
}

if err := backoff.Retry(check, backoff.WithMaxRetries(backoff.NewExponentialBackOff(), 5)); err != nil {
return TFPluginClient{}, fmt.Errorf("can not run deployments for unverified user, please visit https://dashboard.grid.tf/ to verify your account")
return TFPluginClient{}, errors.Wrapf(err, "only verified users can deploy, please visit https://dashboard.grid.tf/ to verify your account")
}

tfPluginClient.useRmbProxy = true
Expand Down

0 comments on commit 67eb75e

Please # to comment.