amphtml
amphtml copied to clipboard
Viewer integration: rewrite error message to indicate request name
Currently, we do this for errors:
https://github.com/ampproject/amphtml/blob/master/extensions/amp-viewer-integration/0.1/messaging.js#L291
The request is to make the error message a bit more descriptive. I.e.
Request "${request.name}" failed: ${error}
That does mean that waitingForResponse_ should store request name.
https://github.com/ampproject/amphtml/pull/7923