Commit fc0780b
committed
authn.configuration: Improve error handling in openid_configuration()
@victorlin suggested¹ we improve error handling in this code path, and
he's right.
Catch and improve the output for the three most common errors we'll
encounter: connection errors, HTTP errors, and JSON decoding errors.
The original error is summarized in the error output, and by chaining
the new exception from the original, the full chain in all its detail
will be printed when NEXTSTRAIN_DEBUG=1 for troubleshooting.
¹ <#333 (comment)>1 parent 2497224 commit fc0780b
1 file changed
+20
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
28 | 44 | | |
29 | 45 | | |
30 | 46 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 47 | + | |
35 | 48 | | |
36 | 49 | | |
37 | 50 | | |
| |||
0 commit comments