Skip to content

Enhance error messages #33

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

Merged
merged 1 commit into from
Feb 22, 2019
Merged

Conversation

mischah
Copy link
Contributor

@mischah mischah commented Feb 22, 2019

Shows a different error message when package.json constains invalid JSON:

image

Closes #29

Backstory

I had to replace the dependency for reading the scripts from package.json because pkginfo exposes the same error when there is no package.json found and when the file is malformed:

Error: Could not find package.json up from undefined

Shows a different error message  when `package.json` constains invalid JSON.

Closes ruyadorno#29
@ruyadorno
Copy link
Owner

awesome 🎉 thank you so much @mischah ❤️

@ruyadorno ruyadorno merged commit 92216dd into ruyadorno:master Feb 22, 2019
@mischah mischah deleted the improve-error-messages branch February 22, 2019 22:13
@mischah
Copy link
Contributor Author

mischah commented Feb 22, 2019

You are very welcome.

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

Successfully merging this pull request may close these issues.

2 participants