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

Improved error message when using promise keyword inapropriately #57

Open
adiel opened this issue Dec 18, 2014 · 1 comment
Open

Improved error message when using promise keyword inapropriately #57

adiel opened this issue Dec 18, 2014 · 1 comment

Comments

@adiel
Copy link
Member

adiel commented Dec 18, 2014

Sometimes I've used the name promise for a variable forgetting it's a keyword, e.g:

promise = getStuffAsync(...)

//later
promise!

The pogo compiler says "TypeError: Cannot read property '0' of undefined" with no trace of where the problem is. Takes me a while to remember what this means.

@refractalize
Copy link
Member

good point!

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