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

get all config.get* methods fail safely #227

Merged
merged 2 commits into from
Sep 22, 2024

Conversation

mixmix
Copy link
Contributor

@mixmix mixmix commented Sep 19, 2024

I noticed that there was a nice error-handler for getSync but not for get!

Consolidated!

@mixmix mixmix requested a review from rh0delta September 19, 2024 00:43
if (err.code !== 'ENOENT') throw err

const newConfig = migrateData(allMigrations, {})
mkdirp.sync(dirname(configPath))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

caught a bug too!

YO we are gonna need to write some testing runsheets - the "fresh install" is a test-case we are missing a lot

@mixmix mixmix merged commit 96ec283 into naynay/file-restructure Sep 22, 2024
1 of 2 checks passed
@mixmix mixmix deleted the mixmix/config-get-fixes branch September 22, 2024 22:46
@github-actions github-actions bot locked and limited conversation to collaborators Sep 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants