fix(html): correct column for error code frame (#5553)
- before ```html [error] test.html: SyntaxError: Unexpected character "/" (1:26) [error] > 1 | <div>footer content here<//> [error] | ^ ``` - after ```html [error] test.html: SyntaxError: Unexpected character "/" (1:27) [error] > 1 | <div>footer content here<//> [error] | ^ ```
This commit is contained in:
1 file changed
+1
-1
@@ -36,7 +36,7 @@ function ngHtmlParser(
|
||||
if (errors.length !== 0) {
|
||||
const { msg, span } = errors[0];
|
||||
const { line, col } = span.start;
|
||||
throw createError(msg, { start: { line: line + 1, column: col } });
|
||||
throw createError(msg, { start: { line: line + 1, column: col + 1 } });
|
||||
}
|
||||
|
||||
const addType = node => {
|
||||
|
||||
Reference in new issue
Block a user