Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions client-src/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ function show(messages, type) {
messages.forEach((message) => {
const entryElement = document.createElement("div");
const typeElement = document.createElement("span");

typeElement.innerText = type === "warnings" ? "Warning:" : "Error:";
// ts-loader will output `error.file` for error file path, not in message
typeElement.innerText =
(type === "warnings" ? "Warning:" : "Error:") + (message.file || "");
typeElement.style.color = `#${colors.red}`;

// Make it look similar to our terminal.
Expand Down