Commit 125ff47
committed
Preserve error context in JSON parsing error handlers
Add { cause: e } to error constructors in getResponseJson to preserve
original error context for debugging. This follows the "no silent
failures" principle by maintaining the full error chain when wrapping
SyntaxError and unknown JSON parsing errors.1 parent b7d5899 commit 125ff47
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | | - | |
222 | | - | |
223 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
0 commit comments