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

Add error handling in init #45

Merged
merged 4 commits into from Sep 9, 2015
Merged

Add error handling in init #45

merged 4 commits into from Sep 9, 2015

Conversation

ptusch
Copy link
Contributor

@ptusch ptusch commented Sep 4, 2015

Error handling allows a dependent to check for errors nicely.
You don't have to check for undefined anymore.

Just use the err variable transmitted with the init-callback.

The error either transmits the err from the read call or builds an own error.
The own error simply states that no packages weren't found.

If everything is fine, err will be null,
For downward compatibility to other dependents, the err is submitted after the sorted (or filtered)

Philipp Tusch added 2 commits September 4, 2015 10:46
Error handling allows a dependent to check for errors nicely.
You don't have to check for undefined anymore.

Just use the err variable transmitted with the init-callback.

The error either transmits the err from the read call or builds an own error.
The own error simply states that no packages weren't found.

If everything is fine, err will be null,
For downward compatibility to other dependents, the err is submitted after the sorted (or filtered)
@ptusch
Copy link
Contributor Author

ptusch commented Sep 4, 2015

Added with commit 1a93a41

I don't close this yet

@ptusch
Copy link
Contributor Author

ptusch commented Sep 8, 2015

Update this PR as you updated your test policy.

Cheers
Philipp

davglass added a commit that referenced this pull request Sep 9, 2015
@davglass davglass merged commit 5a0f774 into davglass:master Sep 9, 2015
@ptusch ptusch deleted the ft_error_handling branch September 9, 2015 15:12
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

2 participants