Skip to content

Commit

Permalink
Log Yarn runtime errors to console
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Nov 30, 2024
1 parent bfc88b5 commit 5235fa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ export async function load(initialContentName: string = "default") {
errorText.innerText = "Error: ";

logElement.insertBefore(errorText, logElement.firstChild);

console.error(error.message);
};

document.getElementById("button-test").addEventListener("click", async () => {
Expand Down

0 comments on commit 5235fa1

Please sign in to comment.