Skip to content

Commit

Permalink
Cleanup: err msg verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Sep 15, 2023
1 parent 3eccc29 commit 82db3d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agents/agents/guard/calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ func (g Guard) getAgentStatus(ctx context.Context, chainID uint32, agent common.
contractCall := func(ctx context.Context) error {
agentStatus, err = contract.GetAgentStatus(ctx, agent)
if err != nil {
return fmt.Errorf("could not get agent status: %w", err)
return fmt.Errorf("could not get agent status from contract: %w", err)
}
return nil
}
err = retry.WithBackoff(ctx, contractCall, g.retryConfig...)
if err != nil {
return nil, fmt.Errorf("could not get agent status: %w", err)
return nil, fmt.Errorf("could not get agent status after retry: %w", err)
}
return agentStatus, nil
}
Expand Down

0 comments on commit 82db3d8

Please sign in to comment.