Skip to content

Commit

Permalink
add context to error
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjb committed Jul 15, 2024
1 parent de45dcc commit 33eb277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/engine/rtengine/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func NewRuleEngineCache(
Projects: hierarchy,
})
if err != nil {
return nil, err
return nil, fmt.Errorf("error while retrieving rule types from db: %w", err)
}

engines := make(map[uuid.UUID]*RuleTypeEngine, len(ruleTypes))
Expand Down

0 comments on commit 33eb277

Please sign in to comment.