This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve JSON errors debuggability
As seen in #393 previously JSON decoding errors are obscure. This changes improve the debugging in two cases: - The `package.json` file fails to decode; now emits a clearer error. - The wranglerjs backend returns an invalid JSON; now preserves the output file for further investigation. The console doesn't print the output file location by default, you need to pass `RUST_LOG=info` while running `wrangler build` and search for `--output-file=FILE` argument passed to wranglerjs.
- Loading branch information