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

Syntax for conditional check for errors in README doesn't work #221

Closed
fatuhoku opened this issue Jan 28, 2016 · 2 comments
Closed

Syntax for conditional check for errors in README doesn't work #221

fatuhoku opened this issue Jan 28, 2016 · 2 comments
Assignees

Comments

@fatuhoku
Copy link

There's a few instances in the README where errors are handled with this conditional:

  } else if task.error() {

However I cannot get this to compile.

@nlutsenko
Copy link
Member

error is not a function, but rather a property - try removing parenthesis at the end of the if task.error().
We do need to update the docs, I agree. Will keep this open for now then, PRs are very welcome.

@nlutsenko nlutsenko self-assigned this Jan 28, 2016
@wzs wzs mentioned this issue Feb 17, 2016
@nlutsenko
Copy link
Member

Fixed with #230, thanks @wzs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants