Skip to content

Commit be104ec

Browse files
thePunderWomandylhunn
authored andcommitted
fix(core): add newline to hydration mismatch error (#49965)
This adds a newline after the hydration mismatch errors to provide more separation and readability. PR Close #49965
1 parent 1752af1 commit be104ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/hydration/error_handling.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export function invalidSkipHydrationHost(rNode: RNode): Error {
169169
'that doesn\'t act as a component host. Hydration can be ' +
170170
'skipped only on per-component basis.\n\n';
171171
const actual = `${describeDomFromNode(rNode)}\n\n`;
172-
const footer = 'Please move the `ngSkipHydration` attribute to the component host element.';
172+
const footer = 'Please move the `ngSkipHydration` attribute to the component host element.\n\n';
173173
const message = header + actual + footer;
174174
return new RuntimeError(RuntimeErrorCode.INVALID_SKIP_HYDRATION_HOST, message);
175175
}
@@ -366,7 +366,7 @@ function getHydrationErrorFooter(componentClassName?: string): string {
366366
return `To fix this problem:\n` +
367367
` * check ${componentInfo} component for hydration-related issues\n` +
368368
` * or skip hydration by adding the \`ngSkipHydration\` attribute ` +
369-
`to its host node in a template`;
369+
`to its host node in a template\n\n`;
370370
}
371371

372372
/**

0 commit comments

Comments
 (0)