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

Can add additional result data when error? #200

Closed
ufosky opened this issue Nov 17, 2015 · 2 comments
Closed

Can add additional result data when error? #200

ufosky opened this issue Nov 17, 2015 · 2 comments

Comments

@ufosky
Copy link

ufosky commented Nov 17, 2015

I want to add some custom data when task is error or some additional data when has result,if the BFTask class can add a property like userdata or so.

@wzs
Copy link
Contributor

wzs commented Feb 17, 2016

You can pass additional data into NSError.userInfo, there is no need to add that at Bolts level

@nlutsenko
Copy link
Member

@ufosky, looks like the solution provided by @wzs would work just great here.
Feel free to reopen (or send a PR?) if you think there is something we could do in this space.

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

3 participants