Dotnet - Include key name when failing to add to a MapField due to a duplicate key
#17.085 geöffnet am 10. Juni 2024
Repository-Metriken
- Stars
- (71.223 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 2T 11h) (185 gemergte PRs in 30 T)
Beschreibung
What language does this apply to? C#/dotnet
Describe the problem you are trying to solve. Trying to understand why adding a key to a MapField fails
Describe the solution you'd like The Argument exception should contain the name of the key that failed being added https://github.com/protocolbuffers/protobuf/blob/54d8f03974c108ef8fd0f26568cd9eb086165568/csharp/src/Google.Protobuf/Collections/MapField.cs#L97
Describe alternatives you've considered None
Additional context
We aren't using this library directly, but through a 3rd party library that uses Google.Cloud.Logging.V2, making debugging challenging