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

Better error repoting for loadPromise fail #4800

Merged
merged 2 commits into from Sep 2, 2016

Conversation

aghassemi
Copy link
Contributor

we have lots of Error: Failed HTTP request for %s. [object HTMLImageElement] in the log.

createError does not support interpolation so %s was useless. Also [object HTMLImageElement] is not very helpful.

Changing to use src instead of the object when available, now we get:

Error: Failed to load: https://cdn.ampproject.org/i/example.com/logo.jpg​​​

@aghassemi aghassemi merged commit d811496 into ampproject:master Sep 2, 2016
mityaha pushed a commit to ooyala/amphtml that referenced this pull request Nov 30, 2016
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

2 participants