Skip to content

Commit

Permalink
error wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha committed Dec 10, 2024
1 parent 9c1209b commit e373dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions challenger/challenger.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ func (c *Challenger) Initialize(ctx types.Context) error {

c.pendingChallenges, err = challengerdb.LoadPendingChallenges(c.db)
if err != nil {
return err
return errors.Wrap(err, "failed to load pending challenges")
}

c.latestChallenges, err = challengerdb.LoadChallenges(c.db)
if err != nil {
return err
return errors.Wrap(err, "failed to load challenges")
}

return nil
Expand Down

0 comments on commit e373dcf

Please sign in to comment.