We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f1dcd1 commit bcc4eabCopy full SHA for bcc4eab
dictionary/build.ts
@@ -98,7 +98,7 @@ function displayError(
98
currentLine = currentPosition = nextLine;
99
}
100
101
- const line = source.slice(0, startLine).split(/\n(?!$)/).length;
+ const line = source.slice(0, startLine).split(/\n(?!$)/).length + 1;
102
const column = position - startLine + 1;
103
console.error(` at %c${SOURCE}:${line}:${column}`, sourceStyle);
104
console.error();
0 commit comments