-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: Catch sync/async* exceptions in interceptor's handlers #2139
Conversation
Signed-off-by: CaiJingLong <cjl_spy@163.com>
Signed-off-by: CaiJingLong <cjl_spy@163.com>
Signed-off-by: CaiJingLong <cjl_spy@163.com>
Signed-off-by: CaiJingLong <cjl_spy@163.com>
Signed-off-by: CaiJingLong <cjl_spy@163.com>
Should we be more explicit about this and also change the return type of the |
We can keep those as long as Dart can recognize them, IMO. :D |
ea87715
to
e1399ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix, I created a follow up #2141
Looks like the |
I think this is related to the change of the return type to |
Reverts #2139 Fixes #2167 Reopen #2138 ### New Pull Request Checklist - [x] I have read the [Documentation](https://pub.dev/documentation/dio/latest/) - [x] I have searched for a similar pull request in the [project](https://github.com/cfug/dio/pulls) and found none - [x] I have updated this branch with the latest `main` branch to avoid conflicts (via merge from master or rebase) - [ ] I have added the required tests to prove the fix/feature I'm adding - [x] I have updated the documentation (if necessary) - [x] I have run the tests without failures - [x] I have updated the `CHANGELOG.md` in the corresponding package ### Additional context and info (if any) Added tests were fake, so they remained effective after the revert.
Resolves #2138
New Pull Request Checklist
main
branch to avoid conflicts (via merge from master or rebase)CHANGELOG.md
in the corresponding package