Skip to content

Commit

Permalink
fix: show detailed error in overlay for webpack 5 (#2811)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Nov 17, 2020
1 parent 0a6feac commit 6f5d0b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client-src/default/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ function clear() {
function showMessage(messages) {
ensureOverlayDivExists((div) => {
// Make it look similar to our terminal.
const text = ansiHTML(entities.encode(messages[0]));
const errorMessage = messages[0].message || messages[0];
const text = ansiHTML(entities.encode(errorMessage));

div.innerHTML = `<span style="color: #${colors.red}">Failed to compile.</span><br><br>${text}`;
});
Expand Down

0 comments on commit 6f5d0b6

Please sign in to comment.