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

add ERR prefix to error #240

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

add ERR prefix to error #240

wants to merge 7 commits into from

Conversation

gkorland
Copy link
Contributor

@gkorland gkorland commented Aug 30, 2022

src/key.rs Outdated Show resolved Hide resolved
@gkorland gkorland requested a review from oshadmi January 16, 2023 11:05
@@ -45,6 +45,6 @@ impl fmt::Display for RedisError {
RedisError::String(s) => s.as_str(),
};

write!(f, "{}", d)
write!(f, "ERR {d}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaks test error::tests::test_to_redis_error

@MeirShpilraien
Copy link
Collaborator

What if the user want different error code other then ERR?

@gkorland gkorland requested a review from oshadmi February 12, 2023 13:27
@MeirShpilraien
Copy link
Collaborator

What if we want different error code then ERR?

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.

'ERR' prefix not exist in 'Existing key has wrong Redis type' error
4 participants