-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LSET return no suck key instread of NotFound when key not exist (#1557)
The current code directly returns s.ToString() in this case: ``` 127.0.0.1:6666> lset nokey 0 1 (error) ERR NotFound: ``` NotFound might not be that friendly, and there's an extra `:` after it. Modify it to return no such key: ``` 127.0.0.1:6666> lset nokey 0 1 (error) ERR no such key ``` Note Redis also return the no such key error in this case, so it should be fine to return this error.
- Loading branch information
1 parent
7e23c0b
commit 80913bc
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters