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

When there is an error, second argument passed to callback is the error too #198

Open
sonnyp opened this issue Nov 9, 2013 · 0 comments

Comments

@sonnyp
Copy link

sonnyp commented Nov 9, 2013

Is this on purpose?

db.get('foo', 'bar', function(err, bar) {
  console.log(arguments);
}

results in

{ '0': { [Error: not found] message: 'not found', statusCode: 404, notFound: true },
  '1': { [Error: not found] message: 'not found', statusCode: 404, notFound: true },
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

No branches or pull requests

1 participant