MCPcopy Create free account
hub / github.com/ampproject/amphtml / createEventErrorMessage

Function createEventErrorMessage

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

* Helper function to describe an issue with an event object * @param {!string} valueName * @param {?*} value * @returns {!string}

(valueName, value)

Source from the content-addressed store, hash-verified

7173 * @returns {!string}
7174 */
7175function createEventErrorMessage(valueName, value) {
7176 return 'Event has an invalid ' + valueName + '(' + value + ')';
7177}
7178
7179/**
7180 * Throws an error if the event is invalid.

Callers 1

validateEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected