Skip to content

Commit ef089e8

Browse files
committed
fix: display file name in overlay
1 parent 84df3d4 commit ef089e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client-src/overlay.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ function show(messages, type) {
131131
const entryElement = document.createElement("div");
132132
const typeElement = document.createElement("span");
133133

134-
typeElement.innerText = type === "warnings" ? "Warning:" : "Error:";
134+
typeElement.innerText =
135+
(type === "warnings" ? "Warning:" : "Error:") + message.file || "";
135136
typeElement.style.color = `#${colors.red}`;
136137

137138
// Make it look similar to our terminal.

0 commit comments

Comments
 (0)