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

Fix error handling in commands add and get #4454

Merged
merged 1 commit into from
Dec 4, 2017
Merged

Conversation

keks
Copy link
Contributor

@keks keks commented Dec 4, 2017

Closes #4452.

When SetError is called in a command, res.Next() returns the error "received command error" makes the error set by the command available by calling res.Error(). To make handling these errors easier, the functions cmds.HandleError was added. Unfortunately we forgot to use it in the get command.

The add command did the right thing, but manually instead of calling HandleError. I made it call that function instead.

@ghost ghost assigned keks Dec 4, 2017
@ghost ghost added the status/in-progress In progress label Dec 4, 2017
@whyrusleeping
Copy link
Member

test failures appear unrelated.

@whyrusleeping whyrusleeping merged commit bee2ba3 into master Dec 4, 2017
@ghost ghost removed the status/in-progress In progress label Dec 4, 2017
@whyrusleeping whyrusleeping deleted the fix/get-error-4452 branch December 4, 2017 17:44
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.

3 participants