Skip to content

Commit 703f335

Browse files
authored
chore: add error wrapping (#2720)
1 parent b7d9a67 commit 703f335

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openmeter/subscription/subscriptionspec.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,9 @@ func (s SubscriptionItemSpec) ToScheduleSubscriptionEntitlementInput(
696696
}
697697

698698
if meta.FeatureKey == nil {
699-
return def, true, fmt.Errorf("feature is required for rate card where entitlement is present: %s", s.ItemKey)
699+
return def, true, models.NewGenericValidationError(
700+
fmt.Errorf("feature is required for rate card where entitlement is present: %s", s.ItemKey),
701+
)
700702
}
701703

702704
t := meta.EntitlementTemplate.Type()

0 commit comments

Comments
 (0)