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

Function renderErrorMessage

validator/cpp/engine/wasm/validator.js:125–128  ·  view source on GitHub ↗

* Renders the error message for a single error. * * @param {!Object} error * @return {string}

(error)

Source from the content-addressed store, hash-verified

123 * @return {string}
124 */
125function renderErrorMessage(error) {
126 asserts.assertExists(wasmModule, `WebAssembly is uninitialized`);
127 return wasmModule.renderErrorMessage(error[PB_BASE64]);
128}
129
130/**
131 * @param {!Object} validationResult

Callers 1

errorLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected