Skip to content

Commit

Permalink
refactor: change ErrNotFound value
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed May 1, 2024
1 parent c7eb7e7 commit fc9070d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const InitialVersion = 1

// Common errors returned by data structure methods.
var (
ErrNotFound = errors.New("key not found")
ErrNotFound = errors.New("key or elem not found")
ErrValueType = errors.New("invalid value type")
ErrNotAllowed = errors.New("operation not allowed")
)
Expand Down
2 changes: 1 addition & 1 deletion redka.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const driverName = "sqlite3"

// Common errors returned by data structure methods.
var (
ErrNotFound = core.ErrNotFound // key not found
ErrNotFound = core.ErrNotFound // key or element not found
ErrValueType = core.ErrValueType // invalid value type
)

Expand Down

0 comments on commit fc9070d

Please sign in to comment.