Skip to content

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