Skip to content

Commit

Permalink
better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Jun 27, 2024
1 parent 5e86b30 commit 7accd60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpc/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ func WithClients[C any, V any](clients *Clients[C], f func(C) (v V, err error))
for {
client, err := clients.Next()
if err != nil {
return v, err
errs = multierror.Append(errs, err)
return v, errs
}
v, err := f(client)
if err != nil {
Expand Down

0 comments on commit 7accd60

Please sign in to comment.