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

fix(scripts): generalize error handling in utils.setConfig #20

Merged
merged 9 commits into from
Apr 18, 2024

Conversation

jcs47
Copy link
Contributor

@jcs47 jcs47 commented Apr 17, 2024

I have seen fs.existsSync returning true even if the file doesn't exist, which then results in a json parsing error. So get around this, this PR generalizes error handling via try/catch when parsing package info.

@jcs47 jcs47 requested a review from a team as a code owner April 17, 2024 20:33
@Foivos Foivos merged commit c80e03e into main Apr 18, 2024
2 checks passed
@Foivos Foivos deleted the fix/package_conf branch April 18, 2024 04:24
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