MCPcopy Index your code
hub / github.com/angular/angular / absoluteUrlError

Function absoluteUrlError

packages/common/test/image_loaders/image_loader_spec.ts:24–29  ·  view source on GitHub ↗
(src: string, path: string)

Source from the content-addressed store, hash-verified

22import {RuntimeErrorCode} from '../../src/errors';
23
24const absoluteUrlError = (src: string, path: string) =>
25 `NG02959: Image loader has detected a \`<img>\` tag with an invalid ` +
26 `\`ngSrc\` attribute: ${src}. This image loader expects \`ngSrc\` ` +
27 `to be a relative URL - however the provided value is an absolute URL. ` +
28 `To fix this, provide \`ngSrc\` as a path relative to the base URL ` +
29 `configured for this loader (\`${path}\`).`;
30
31const invalidPathError = (path: string, formats: string) =>
32 `NG02959: Image loader has detected an invalid path (\`${path}\`). ` +

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected