Skip to content

Commit 468ee09

Browse files
committed
resume with OpenFeature error
1 parent 1e5bd40 commit 468ee09

File tree

1 file changed

+1
-1
lines changed
  • features/dd-sdk-android-flags-openfeature/src/main/kotlin/com/datadog/android/flags/openfeature

1 file changed

+1
-1
lines changed

features/dd-sdk-android-flags-openfeature/src/main/kotlin/com/datadog/android/flags/openfeature/DatadogFlagsProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class DatadogFlagsProvider private constructor(private val flagsClient: FlagsCli
128128
when (flagsClient.state.getCurrentState()) {
129129
is FlagsClientState.Ready -> continuation.resume(Unit)
130130
is FlagsClientState.Error -> continuation.resumeWithException(
131-
Exception("Provider not ready")
131+
OpenFeatureError.ProviderFatalError("Provider not ready")
132132
)
133133
else -> {
134134
// Not ready yet - need to wait, but no context to set

0 commit comments

Comments
 (0)