Skip to content

Commit 263705e

Browse files
committed
Add message to unsupported feature
1 parent 10b5549 commit 263705e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenFeature.Contrib.ConfigCat/ConfigCatProvider.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Text.Json;
32
using System.Threading.Tasks;
43
using ConfigCat.Client;
54
using ConfigCat.Client.Configuration;
@@ -61,7 +60,8 @@ public override Task<ResolutionDetails<double>> ResolveDoubleValue(string flagKe
6160
/// <inheritdoc/>
6261
public override Task<ResolutionDetails<Value>> ResolveStructureValue(string flagKey, Value defaultValue, EvaluationContext context = null)
6362
{
64-
throw new NotSupportedException();
63+
throw new NotSupportedException(
64+
"ConfigCat does not support structure values. Use JSON string instead.");
6565
}
6666

6767
private async Task<ResolutionDetails<T>> ProcessFlag<T>(string flagKey, EvaluationContext context, T defaultValue)

0 commit comments

Comments
 (0)