| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…ails 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.
| Back | FazBrowse Home | New Git URL |
Fixes #3710
One-line fix: the catch handler in parseDataConnectConfig names its error variable _ but logs e, which is undefined — so the intended soft-fail path (warn and return null) instead crashes the schematic with a ReferenceError. Renaming the variable to e makes the handler do what it was written to do.
No behavior change on the success path. The file isn't covered by any typecheck today (the library build excludes the schematics; esbuild doesn't check types), which is how this survived — a tsc --noEmit pass over src/schematics would catch this class of bug at build time.