From b28ab263ea72648849281e777cc338e2384ec8fe Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Thu, 14 Sep 2023 14:25:30 -0300 Subject: [PATCH] escape `< >` symbols --- packages/astro/src/core/errors/errors-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index 1f336e5f8..33eca5904 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -595,7 +595,7 @@ export const ExpectedImage = { name: 'ExpectedImage', title: 'Expected src to be an image.', message: (src: string, typeofOptions: string, fullOptions: string) => - `Expected \`src\` property for \`getImage\` or \`\` to be either an ESM imported image or a string with the path of a remote image. Received \`${src}\` (type: \`${typeofOptions}\`).\n\nFull serialized options received: \`${fullOptions}\`.`, + `Expected \`src\` property for \`getImage\` or \`\\` to be either an ESM imported image or a string with the path of a remote image. Received \`${src}\` (type: \`${typeofOptions}\`).\n\nFull serialized options received: \`${fullOptions}\`.`, hint: "This error can often happen because of a wrong path. Make sure the path to your image is correct. If you're passing an async function, make sure to call and await it.", } satisfies ErrorData; /**