Skip to content

Commit

Permalink
fix: wrong link error message
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Aug 15, 2021
1 parent 971b17f commit 020ad64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/client/link.tsx
Expand Up @@ -237,7 +237,7 @@ function Link(props: React.PropsWithChildren<LinkProps>) {
throw new Error(
`Multiple children were passed to <Link> with \`href\` of \`${props.href}\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children` +
(typeof window !== 'undefined'
? "\nOpen your browser's console to view the Component stack trace."
? " \nOpen your browser's console to view the Component stack trace."
: '')
)
}
Expand Down

0 comments on commit 020ad64

Please sign in to comment.