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

Function devError

src/core/error/index.js:108–113  ·  view source on GitHub ↗
(tag, ...args)

Source from the content-addressed store, hash-verified

106 * @param {...*} args
107 */
108export function devError(tag, ...args) {
109 const error = createError.apply(null, args);
110 // TODO(rcebulko): Determine if/how this Error#name property is used.
111 error.name = tag || error.name;
112 maybeReportError(error);
113}
114
115/**
116 * Reports an error message and marks with an expected property. If the

Callers 4

test-error.jsFile · 0.90
assertNotDisplayFunction · 0.90

Calls 2

maybeReportErrorFunction · 0.85
applyMethod · 0.80

Tested by

no test coverage detected