Skip to content

fix(utils): Ignore errors during store flush#1331

Merged
jan-auer merged 1 commit into
nextfrom
fix/store-flush
May 15, 2018
Merged

fix(utils): Ignore errors during store flush#1331
jan-auer merged 1 commit into
nextfrom
fix/store-flush

Conversation

@jan-auer
Copy link
Copy Markdown
Member

Store.flush() might have failed when an anti virus interferes or there is a problem with the file system. However, flush is usually executed in a setImmediate callback, which cannot throw exceptions. For that reasons, we need to ignore errors ignoring during this flush.

Once we have proper logging set up, we send this error to our log stream.

@jan-auer jan-auer requested a review from kamilogorek as a code owner May 15, 2018 09:05
@jan-auer jan-auer requested a review from HazAT May 15, 2018 09:05
@jan-auer jan-auer self-assigned this May 15, 2018
@jan-auer jan-auer merged commit 84afef5 into next May 15, 2018
@jan-auer jan-auer deleted the fix/store-flush branch May 15, 2018 09:20
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