Skip to content

cli(sentry): handle configstore errors by not enabling error reporting#3878

Merged
brendankenny merged 1 commit intomasterfrom
configstoreerror
Nov 21, 2017
Merged

cli(sentry): handle configstore errors by not enabling error reporting#3878
brendankenny merged 1 commit intomasterfrom
configstoreerror

Conversation

@brendankenny
Copy link
Contributor

fixes #3873

Lighthouse shouldn't fail when configstore hits an EACCES error. We also don't want to make a user who can't use configstore hit the 20 second timeout every time, so it seems like defaulting to false is the thing to do here.

Seemed better to have this handled within askPermission than by the caller. Promise wrapper will get a bit nicer when we can do async/await, but note that it's the get and set calls that try to access the file, not the Configstore constructor, and wrapping the two individually made a bit of a mess.

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

seems like a good call 👍

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.

Access denied configstore/lighthouse.json - Lighthouse 2.6.0

2 participants