8000 Improve errors when JSON is invalid · Issue #51 · pelias/config · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Improve errors when JSON is invalid #51
Open
@orangejulius

Description

@orangejulius

Currently any issues with the pelias.json file cause the config code to output a very unclear error message that looks like this:

throw new Error( 'failed to merge config from path:' + path );

It doesn't give any indication that the problem is with the config file's syntax and definitely doesn't provide hints at the part of the file that has the syntax issue. There are many ways to validate JSON, surely we can bring one in and use it to create friendly error messages.

< 4526 /div>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0