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

How to correctly auth to server; what error to look for if you're doing it wrong; emit Error objects not string #183

Merged
merged 3 commits into from Mar 6, 2012

Conversation

DTrejo
Copy link
Contributor

@DTrejo DTrejo commented Mar 5, 2012

This is a documentation & correct error throwing fix for #155 & #172

Super short summary of what this does: explains how to correctly auth to server; what error to look for if you're doing it wrong; and code to emit Error objects not strings.

Tests are still passing :)

PS Yes, by re-making the Error object you do lose one stack frame from the error, but it's ok since it is not relevant (from what I saw).

I looked through all of index.js and corrected all instances of strings being thrown/emitted instead of Errors.

mranney added a commit that referenced this pull request Mar 6, 2012
How to correctly auth to server; what error to look for if you're doing it wrong; emit Error objects not string
@mranney mranney merged commit a02e058 into redis:master Mar 6, 2012
@mranney
Copy link
Contributor

mranney commented Mar 6, 2012

This looks great, thanks.

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.

None yet

2 participants