fix: print image path for NoImageMetadata (#8666)
This commit is contained in:
parent
60684fad72
commit
9fe4b95969
2 changed files with 6 additions and 1 deletions
5
.changeset/gentle-rocks-enjoy.md
Normal file
5
.changeset/gentle-rocks-enjoy.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Fix NoImageMetadata image path error message
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue