Skip to content

Commit 265e3f3

Browse files
committed
make message more concise
1 parent 60aee28 commit 265e3f3

File tree

1 file changed

+1
-2
lines changed
  • packages/svelte/src/internal/server

1 file changed

+1
-2
lines changed

packages/svelte/src/internal/server/dev.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ let parent = null;
2727
function error_on_client(payload, message) {
2828
message =
2929
`${message}\n\n` +
30-
'Ensure your components render valid HTML as the browser will try to repair invalid HTML, ' +
31-
'which may result in content being shifted around and will likely result in a hydration mismatch.';
30+
'This can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.';
3231
// eslint-disable-next-line no-console
3332
console.error(message);
3433
payload.head.out += `<script>console.error(${JSON.stringify(message)})</script>`;

0 commit comments

Comments
 (0)