Commit e56bbec
authored
outbound: Make discovery error detection generic (#644)
The outbound proxy handles discovery rejection error with a fallback
router. The current implementation does not allow for middlewares
to wrap errors in a general fashion.
This change updates the `is_discovery_rejected` function to examine
arbitrary error types to determine if the underlying error matches the
known types.1 parent b61af18 commit e56bbec
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | | - | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
604 | 606 | | |
0 commit comments