Skip to content

Commit a3d5b61

Browse files
committed
fix: fix code error
1 parent 609e98b commit a3d5b61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client-src/overlay.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ function show(messages, type) {
130130
messages.forEach((message) => {
131131
const entryElement = document.createElement("div");
132132
const typeElement = document.createElement("span");
133-
133+
// ts-loader will output `error.file` for error file path, not in message
134134
typeElement.innerText =
135-
(type === "warnings" ? "Warning:" : "Error:") + message.file || "";
135+
(type === "warnings" ? "Warning:" : "Error:") + (message.file || "");
136136
typeElement.style.color = `#${colors.red}`;
137137

138138
// Make it look similar to our terminal.

0 commit comments

Comments
 (0)