diff --git a/.changeset/gentle-rocks-enjoy.md b/.changeset/gentle-rocks-enjoy.md new file mode 100644 index 0000000000..4131672ca9 --- /dev/null +++ b/.changeset/gentle-rocks-enjoy.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Fix NoImageMetadata image path error message diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index ace362cefc..5f825126f4 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -649,7 +649,7 @@ export const NoImageMetadata = { name: 'NoImageMetadata', title: 'Could not process image metadata.', message: (imagePath: string | undefined) => - `Could not process image metadata${imagePath ? ' for `${imagePath}`' : ''}.`, + `Could not process image metadata${imagePath ? ` for \`${imagePath}\`` : ''}.`, hint: 'This is often caused by a corrupted or malformed image. Re-exporting the image from your image editor may fix this issue.', } satisfies ErrorData;