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

Update 14-persist.js #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update 14-persist.js #12

wants to merge 1 commit into from

Conversation

cyr14d
Copy link

@cyr14d cyr14d commented Jul 9, 2020

This allows for the case of an empty ENV macro file, otherwise we get an error:
09:21:08 Capacity 'DB is corrupted, cannot JSON parse the DB'
09:21:08 Capacity 'Unhandled promise rejection' [Error: DB_PARSE_ERROR]

This allows for the case of an empty ENV macro file, otherwise we get an error:
09:21:08	Capacity		'DB is corrupted, cannot JSON parse the DB'
09:21:08	Capacity		'Unhandled promise rejection' [Error: DB_PARSE_ERROR]
Copy link
Collaborator

@ObjectIsAdvantag ObjectIsAdvantag left a comment

Choose a reason for hiding this comment

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

thanks Peter, great pick
though a bit of magic happens
for maintenance reason, I'd rather see applied a specific section that tests for empty file, and adds specific behavior and logging accordingly.

let me know if you want to give this a try, otherwise I'll cover when time permits.

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