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

Throw better error message when url is not auditable #2527

Merged
merged 2 commits into from
Jun 20, 2017

Conversation

wardpeet
Copy link
Collaborator

@wardpeet wardpeet commented Jun 18, 2017

should throw a message that don't support non auditable pages like view-source, ...
Fixes #2525

Not sure it's the best solution though

'are trying to review.'
'are trying to review.',
'Cannot access contents of the page': 'The Lighthouse extension can only audit ' +
' http & https pages.',
Copy link
Contributor

Choose a reason for hiding this comment

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

"Lighthouse can only audit URLs that start with http:// or https://."

@GoogleChrome GoogleChrome deleted a comment from googlebot Jun 20, 2017
Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

i made eric's wording change.

@paulirish paulirish merged commit 40867ea into GoogleChrome:master Jun 20, 2017
@brendankenny
Copy link
Member

does this actually fix #2525? The error pattern (Unable to load the page) won't match the error in that issue and so the updated explanation won't be shown

@paulirish
Copy link
Member

I think you're looking at the wrong one?

the exception message is "Cannot access contents of the page. Extension manifest must request permission to access the respective host."

and this PR looks for "Cannot access contents of the page"

@brendankenny
Copy link
Member

I think you're looking at the wrong one?

oh, ha, new line :) 👍 👍

@wardpeet wardpeet deleted the extension/view-source branch July 24, 2017 05:08
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.

None yet

4 participants