Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCBC-451 & RCBC-452: Expose any specific lookup_in spec errors #118

Merged
merged 3 commits into from Aug 17, 2023

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
ext/couchbase.cxx Outdated Show resolved Hide resolved
ext/couchbase.cxx Outdated Show resolved Hide resolved
ext/couchbase.cxx Outdated Show resolved Hide resolved
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
3 checks passed
@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
3 participants