Skip to content

Commit

Permalink
fix: display file name in overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
githoniel committed Sep 23, 2021
1 parent 84df3d4 commit ef089e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client-src/overlay.js
Expand Up @@ -131,7 +131,8 @@ function show(messages, type) {
const entryElement = document.createElement("div");
const typeElement = document.createElement("span");

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

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

0 comments on commit ef089e8

Please sign in to comment.