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 5bcad29 commit 4b32e9dCopy full SHA for 4b32e9d
dictionary/build.ts
@@ -59,14 +59,15 @@ function displayError(
59
throw error;
60
}
61
62
+ const sourceStyle = color ? "color: blue" : "";
63
for (const error of errors) {
64
console.error(`Error: ${error.message}`);
65
if (error instanceof PositionedError) {
66
const position = error.position;
67
const lines = source.slice(0, position?.position).split(/\r?\n/);
68
const line = lines.length;
69
const column = lines[lines.length - 1].length + 1;
- console.error(` at ${SOURCE}:${line}:${column}`);
70
+ console.error(` at %c${SOURCE}:${line}:${column}`, sourceStyle);
71
console.error();
72
73
0 commit comments