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

Pass errors as Error instances rather than strings. #106

Merged
merged 1 commit into from Oct 23, 2014

Conversation

papandreou
Copy link
Contributor

http://www.devthought.com/2011/12/22/a-string-is-not-an-error/

All the errors that originate from JavaScript already seem to be Error instances, so this is probably just an oversight in the C++ code.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 1bd316d on papandreou:errorInstances into 49b44d8 on lovell:master.

@lovell
Copy link
Owner

lovell commented Oct 23, 2014

Good spot, thank you Andreas.

lovell added a commit that referenced this pull request Oct 23, 2014
Pass errors as Error instances rather than strings.
@lovell lovell merged commit 4a4dd7f into lovell:master Oct 23, 2014
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

3 participants