Skip to content

Correctly return encid.ErrNotFound in place of sql.ErrNoRows.#3

Merged
bobg merged 1 commit into
masterfrom
bobg/not-found-err
Dec 24, 2023
Merged

Correctly return encid.ErrNotFound in place of sql.ErrNoRows.#3
bobg merged 1 commit into
masterfrom
bobg/not-found-err

Conversation

@bobg

@bobg bobg commented Dec 24, 2023

Copy link
Copy Markdown
Owner

The documentation says that DecoderByID and EncoderByType must return encid.ErrNotFound, but the sqlite implementation was returning sql.ErrNoRows instead.

@github-actions

Copy link
Copy Markdown

Modver result

This report was generated by Modver,
a Go package and command that helps you obey semantic versioning rules in your Go module.

This PR does not require a change in your module’s version number.
(You might still consider bumping the patchlevel anyway.)

@bobg bobg merged commit 14879c2 into master Dec 24, 2023
@bobg bobg deleted the bobg/not-found-err branch December 24, 2023 19:54
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.

1 participant