Skip to content

Commit 31fc819

Browse files
committed
red
1 parent 1f02a64 commit 31fc819

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dictionary/build.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ function displayError(
5959
throw error;
6060
}
6161
}
62+
const red = color ? "color: red" : "";
6263
const sourceStyle = color ? "color: blue" : "";
6364
for (const error of errors) {
64-
console.error(`Error: ${error.message}`);
65+
console.error(`%cError%c: ${error.message}`, red, "");
6566
if (error instanceof PositionedError) {
6667
const position = error.position;
6768
const lines = source.slice(0, position?.position).split(/\r?\n/);

0 commit comments

Comments
 (0)