Skip to content

loadConfig JSON SyntaxError omits the file path #30

Description

@royalpinto007

Problem

A malformed config file throws a bare SyntaxError with no path, unlike src/static/manifest.ts which wraps errors with the path.

Where

src/config.ts (bare JSON.parse(raw)).

Acceptance

Add a failing test first with a malformed config file, asserting the message contains the file path. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions