| 22 | import {RuntimeErrorCode} from '../../src/errors'; |
| 23 | |
| 24 | const 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 | |
| 31 | const invalidPathError = (path: string, formats: string) => |
| 32 | `NG02959: Image loader has detected an invalid path (\`${path}\`). ` + |