Skip to content

Commit a13c3b4

Browse files
committed
Update provider.rb
1 parent af02698 commit a13c3b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/configcat-openfeature-provider/provider.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ def fetch_object_value(flag_key:, default_value:, evaluation_context: nil)
157157
#
158158
# @return [String]
159159
private def produce_reason(evaluation_detail)
160+
unless evaluation_detail.error.nil?
161+
return ::OpenFeature::SDK::Provider::Reason::ERROR
162+
end
163+
160164
if !evaluation_detail.matched_targeting_rule.nil? || !evaluation_detail.matched_percentage_option.nil?
161165
return ::OpenFeature::SDK::Provider::Reason::TARGETING_MATCH
162166
end

0 commit comments

Comments
 (0)