Skip to content

Conversation

DemetrisChr
Copy link
Contributor

Motivation

Any spec-specific errors were ignored which resulted in any error that happens being exposed PathNotFound (because of the absence of content)

Changes

Add an error attribute to the SubDocumentField class that stores the Ruby error that is equivalent to the spec-specific error code from the C++ response. This error is raised then content or exists? for that spec are called

@DemetrisChr DemetrisChr requested a review from avsej August 17, 2023 08:59
@cb-sdk-robot
Copy link
Collaborator

Can one of the admins verify this patch?

@DemetrisChr DemetrisChr changed the title Expose any specific lookup_in spec errors RCBC-451 & RCBC-452: Expose any specific lookup_in spec errors Aug 17, 2023
DemetrisChr and others added 2 commits August 17, 2023 10:17
Co-authored-by: Sergey Avseyev <sergey.avseyev@gmail.com>
@DemetrisChr DemetrisChr requested a review from avsej August 17, 2023 09:34
@DemetrisChr DemetrisChr merged commit cde5fb2 into couchbase:main Aug 17, 2023
@DemetrisChr DemetrisChr deleted the lookup-in-error branch August 17, 2023 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants