Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ public static TryCatch<VersionedAndRidCheckedCompositeToken> MonadicCreateFromCo
if (!cosmosObject.TryGetValue(PropertyNames.Continuation, out CosmosElement continuationValue))
{
return TryCatch<VersionedAndRidCheckedCompositeToken>.FromException(
new FormatException($"expected number {nameof(PropertyNames.Continuation)} property for {nameof(VersionedAndRidCheckedCompositeToken)}: {cosmosElement}."));
new FormatException($"expected object {nameof(PropertyNames.Continuation)} property for {nameof(VersionedAndRidCheckedCompositeToken)}: {cosmosElement}."));
}

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

VersionedAndRidCheckedCompositeToken token = new VersionedAndRidCheckedCompositeToken(
Expand Down