escape < > symbols

This commit is contained in:
Sarah Rainsberger 2023-09-14 14:25:30 -03:00 committed by GitHub
parent fca6892f8d
commit b28ab263ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 \`<Image />\` 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 \`\<Image /\>\` 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;
/**