Skip to content

Commit

Permalink
change errors.Join to utils.WrapError
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf committed May 9, 2024
1 parent 9320da8 commit 3f04092
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/operatorsinfo/operatorsinfo_inmemory.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/Layr-Labs/eigensdk-go/crypto/bls"
"github.com/Layr-Labs/eigensdk-go/logging"
"github.com/Layr-Labs/eigensdk-go/types"
"github.com/Layr-Labs/eigensdk-go/utils"
"github.com/ethereum/go-ethereum/common"
)

Expand Down Expand Up @@ -188,10 +189,10 @@ func (ops *OperatorsInfoServiceInMemory) queryPastRegisteredOperatorEventsAndFil

wg.Wait()
if pubkeysErr != nil {
return errors.Join(errors.New("error querying existing registered operators"), pubkeysErr)
return utils.WrapError(errors.New("error querying existing registered operators"), pubkeysErr)
}
if socketsErr != nil {
return errors.Join(errors.New("error querying existing registered operator sockets"), socketsErr)
return utils.WrapError(errors.New("error querying existing registered operator sockets"), socketsErr)
}
ops.logger.Debug("List of queried operator registration events in blsApkRegistry", "alreadyRegisteredOperatorAddr", alreadyRegisteredOperatorAddrs, "alreadyRegisteredOperatorPubkeys", alreadyRegisteredOperatorPubkeys, "service", "OperatorPubkeysServiceInMemory")
ops.logger.Debug("List of queried operator socket registration events", "socketsMap", socketsMap, "service", "OperatorPubkeysServiceInMemory")
Expand Down

0 comments on commit 3f04092

Please sign in to comment.