Skip to content

Commit 93f98c3

Browse files
committed
validation.error.message gives better info
1 parent 1b76918 commit 93f98c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/next-devtools/dev-overlay/utils/save-devtools-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function saveDevToolsConfig(patch: DevToolsConfig) {
3232
if (!validation.success) {
3333
console.warn(
3434
'[Next.js DevTools] Invalid config patch:',
35-
validation.error.errors[0].message
35+
validation.error.message
3636
)
3737
return
3838
}

0 commit comments

Comments
 (0)