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

Disambiguate invalid_write_input #1495

Open
miparnisari opened this issue Mar 28, 2024 · 0 comments
Open

Disambiguate invalid_write_input #1495

miparnisari opened this issue Mar 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@miparnisari
Copy link
Member

// ErrInvalidWriteInput is returned when the tuple to be written
// already existed or the tuple to be deleted did not exist.
ErrInvalidWriteInput = errors.New("invalid write input")

It would be a better developer experience if we surfaced two different errors (with different code fields).

@miparnisari miparnisari added the enhancement New feature or request label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant