Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better errors if the JSON file is invalid #366

Open
flyon opened this issue Jul 3, 2023 · 0 comments
Open

Better errors if the JSON file is invalid #366

flyon opened this issue Jul 3, 2023 · 0 comments

Comments

@flyon
Copy link

flyon commented Jul 3, 2023

When .env-cmdrc.json for example contains an invalid trailing comma then env-cmd gives the following error:

 Failed to find .rc file at default paths: [./.env-cmdrc,./.env-cmdrc.js,./.env-cmdrc.json]

After lots of trial and error I realised it's because of a trailing comma, but env-cmd can perhaps give a more detailed error when it failed to parse a .rc file, instead of saying it cannot find any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant