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 1f02a64 commit 31fc819Copy full SHA for 31fc819
dictionary/build.ts
@@ -59,9 +59,10 @@ function displayError(
59
throw error;
60
}
61
62
+ const red = color ? "color: red" : "";
63
const sourceStyle = color ? "color: blue" : "";
64
for (const error of errors) {
- console.error(`Error: ${error.message}`);
65
+ console.error(`%cError%c: ${error.message}`, red, "");
66
if (error instanceof PositionedError) {
67
const position = error.position;
68
const lines = source.slice(0, position?.position).split(/\r?\n/);
0 commit comments