Skip to content

Commit

Permalink
Use console.error in case of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed Feb 21, 2024
1 parent ed8ae55 commit 1684177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<body>
<div id="root"></div>
<script>
window.onerror = (message, url, linenumber, trace, foo) =>
console.log(`JavaScript error: ${message} on ${url}:${linenumber}`)
window.onerror = (message, url, linenumber) =>
console.error(`JavaScript error: ${message} on ${url}:${linenumber}`)
</script>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down

0 comments on commit 1684177

Please sign in to comment.