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

Method error

src/utils/log.js:269–275  ·  view source on GitHub ↗

* Reports an error message. * @param {string} tag * @param {...*} args

(tag, ...args)

Source from the content-addressed store, hash-verified

267 * @param {...*} args
268 */
269 error(tag, ...args) {
270 if (!this.msg_(tag, LogLevel_Enum.ERROR, args)) {
271 const error = this.createError.apply(this, args);
272 error.name = tag || error.name;
273 self.__AMP_REPORT_ERROR?.(error);
274 }
275 }
276
277 /**
278 * Reports an error message and marks with an expected property. If the

Callers 15

helloFunction · 0.45
helloAgainFunction · 0.45
methodMethod · 0.45
helloFunction · 0.45
helloAgainFunction · 0.45
methodMethod · 0.45
input.jsFile · 0.45
helloAgainFunction · 0.45
output.mjsFile · 0.45
helloAgainFunction · 0.45
cutNightlyBranchFunction · 0.45
doTemplateFunction · 0.45

Calls 2

msg_Method · 0.95
applyMethod · 0.80

Tested by

no test coverage detected