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

Actually extend from Error #49

Open
seangenabe opened this issue Oct 16, 2015 · 1 comment
Open

Actually extend from Error #49

seangenabe opened this issue Oct 16, 2015 · 1 comment

Comments

@seangenabe
Copy link

It's not simple trying to extend from Error. I have observed that errors from this module lack prototype and stack (which is very important for debugging). I've done some research and from jashkenas/coffeescript#2956 it seems that Coffeescript does not intend to fix that, though there's a suggestion there, maybe we can try that?

class MyError extends Error then constructor: -> super
@jeremyfa
Copy link
Owner

Sounds reasonable if it fixes the issue, feel free to make a PR to develop with this change

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

2 participants