Commit 4558e01
authored
Report adapter type errors with a dedicated type (#2321)
Instead of using `bail!` with a string, report adapter type errors using
a dedicated `AdapterModuleDidNotExport` type, so that users can downcast
errors to it, rather than checking the error message string.1 parent 14db2f3 commit 4558e01
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
2523 | 2524 | | |
2524 | 2525 | | |
2525 | 2526 | | |
2526 | | - | |
| 2527 | + | |
2527 | 2528 | | |
2528 | 2529 | | |
2529 | 2530 | | |
2530 | 2531 | | |
2531 | 2532 | | |
2532 | 2533 | | |
2533 | 2534 | | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
2534 | 2552 | | |
2535 | 2553 | | |
2536 | 2554 | | |
| |||
0 commit comments