-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
refactor(router): remove WebhookApiErrorSwitch
and implement error mapping using ErrorSwitch
#1660
refactor(router): remove WebhookApiErrorSwitch
and implement error mapping using ErrorSwitch
#1660
Conversation
WebhookApiErrorSwitch
and implement error mapping using ErrorSwitch
WebhookApiErrorSwitch
and implement error mapping using ErrorSwitch
This line for example would give an error |
WebhookApiErrorSwitch
and implement error mapping using ErrorSwitch
WebhookApiErrorSwitch
and implement error mapping using ErrorSwitch
@PanGan21 Hey, you need to bring the
|
It indeed did the trick! Thanks for the help and the insights. I will publish the pr then 😃 |
Thanks for the PR @PanGan21! |
Type of Change
Description
Additional Changes
Motivation and Context
Refactor error mapping with WebhookApiErrorSwitch to make use of the existing
ErrorSwitch
trait which satisfies the same usecase.Closes #1326
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy