Skip to content

Commit 2cfe5fc

Browse files
authored
fix: print position of unexpected closing tag
1 parent 9f20c4c commit 2cfe5fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export class Parser {
292292

293293
if ((<ElementNode>this.currentTag).tag !== tagToClose) {
294294
this.throwError(
295-
new SyntaxError(`Expected closing "${(<ElementNode>this.currentTag).tag}", found "${tagToClose}"`),
295+
new SyntaxError(`Expected closing "${(<ElementNode>this.currentTag).tag}", found "${tagToClose} at ${this.position}"`),
296296
);
297297
}
298298

0 commit comments

Comments
 (0)