Skip to content

Commit 2884780

Browse files
committed
Fix error message
1 parent 3de31c6 commit 2884780

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/next/client/image.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ export default function Image({
158158
if (process.env.NODE_ENV !== 'production') {
159159
if (!VALID_LOADING_VALUES.includes(loading)) {
160160
throw new Error(
161-
`Image with src "${src}" has invalid "loading" property. Provided "${loading}" should be one of ${VALID_LOADING_VALUES.join(
162-
','
163-
)}.`
161+
`Image with src "${src}" has invalid "loading" property. Provided "${loading}" should be one of ${VALID_LOADING_VALUES.map(
162+
String
163+
).join(',')}.`
164164
)
165165
}
166166
if (priority && loading === 'lazy') {

0 commit comments

Comments
 (0)