MCPcopy
hub / github.com/ampproject/amphtml / createErrorResponse

Function createErrorResponse

third_party/subscriptions-project/swg.js:7728–7733  ·  view source on GitHub ↗

* * @param {!string} error

(error)

Source from the content-addressed store, hash-verified

7726 * @param {!string} error
7727 */
7728function createErrorResponse(error) {
7729 const response = new FinishedLoggingResponse();
7730 response.setComplete(false);
7731 response.setError(error);
7732 return response;
7733}
7734
7735class AnalyticsService {
7736 /**

Callers 2

startMethod · 0.85
getLoggingPromiseMethod · 0.85

Calls 2

setCompleteMethod · 0.95
setErrorMethod · 0.95

Tested by

no test coverage detected