Skip to content

Commit 7867f54

Browse files
Change Feed: Fixes incorrect exception messages in VersionedAndRidCheckedCompositeToken (#4580)
Co-authored-by: Matias Quaranta <[email protected]>
1 parent 6d36c36 commit 7867f54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Microsoft.Azure.Cosmos/src/FeedRange/VersionedAndRidCheckedCompositeToken.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ public static TryCatch<VersionedAndRidCheckedCompositeToken> MonadicCreateFromCo
6060
if (!cosmosObject.TryGetValue(PropertyNames.Continuation, out CosmosElement continuationValue))
6161
{
6262
return TryCatch<VersionedAndRidCheckedCompositeToken>.FromException(
63-
new FormatException($"expected number {nameof(PropertyNames.Continuation)} property for {nameof(VersionedAndRidCheckedCompositeToken)}: {cosmosElement}."));
63+
new FormatException($"expected object {nameof(PropertyNames.Continuation)} property for {nameof(VersionedAndRidCheckedCompositeToken)}: {cosmosElement}."));
6464
}
6565

6666
if (!cosmosObject.TryGetValue(PropertyNames.Rid, out CosmosString ridValue))
6767
{
6868
return TryCatch<VersionedAndRidCheckedCompositeToken>.FromException(
69-
new FormatException($"expected number {nameof(PropertyNames.Version)} property for {nameof(VersionedAndRidCheckedCompositeToken)}: {cosmosElement}."));
69+
new FormatException($"expected string {nameof(PropertyNames.Rid)} property for {nameof(VersionedAndRidCheckedCompositeToken)}: {cosmosElement}."));
7070
}
7171

7272
VersionedAndRidCheckedCompositeToken token = new VersionedAndRidCheckedCompositeToken(

0 commit comments

Comments
 (0)