We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 964ec24 commit ec888caCopy full SHA for ec888ca
SlackNet/WebApi/Responses/ErrorResponse.cs
@@ -13,5 +13,7 @@ public class ErrorResponse
13
[JsonExtensionData]
14
private readonly IDictionary<string, JToken> _info = new Dictionary<string, JToken>();
15
16
- public IReadOnlyDictionary<string, string> Info => _info.ToDictionary(e => e.Key, e => e.Value.ToObject<string>());
+ public IReadOnlyDictionary<string, string> Info => _info
17
+ .Where(i => i.Value.Type == JTokenType.String)
18
+ .ToDictionary(e => e.Key, e => e.Value.ToObject<string>());
19
}
0 commit comments