Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Improve JSON errors debuggability #394

Merged
merged 2 commits into from
Aug 5, 2019
Merged

Improve JSON errors debuggability #394

merged 2 commits into from
Aug 5, 2019

Commits on Aug 5, 2019

  1. feat: improve JSON errors debuggability

    As seen in #393 previously
    JSON decoding errors are obscure.
    
    This changes improve the debugging in three 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.
      - The preview service returns invalid JSON; now emits a clearer error
        and full output can be seen using `RUST_LOG=info`
    xtuc committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    ccced5c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b23ac5d View commit details
    Browse the repository at this point in the history