Commit e4e652f
authored
fix(schematics): log the caught error when dataconnect.yaml parsing fails (#3711)
The catch handler names its error variable _ but logs e, which is not
defined anywhere. When a malformed dataconnect.yaml lands in this
handler, evaluating e throws a ReferenceError from inside the catch —
so instead of warning and continuing with null, the whole schematic
crashes with an unrelated-looking error. Nothing typechecks this file
today (the library build excludes the schematics and esbuild does not
check types), which is how the undefined identifier survived.1 parent b57868d commit e4e652f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
0 commit comments