Skip to content

Commit 1518e3f

Browse files
committed
Update provider.rb
1 parent a13c3b4 commit 1518e3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/configcat-openfeature-provider/provider.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def fetch_object_value(flag_key:, default_value:, evaluation_context: nil)
8383
rescue JSON::ParserError, TypeError
8484
return ::OpenFeature::SDK::Provider::ResolutionDetails.new(
8585
value: default_value,
86+
error_code: ::OpenFeature::SDK::Provider::ErrorCode::TYPE_MISMATCH,
8687
error_message: "Could not parse '#{result.value}' as JSON",
8788
reason: ::OpenFeature::SDK::Provider::Reason::ERROR
8889
)

0 commit comments

Comments
 (0)