Skip to content

Commit 07078c0

Browse files
committed
Upate onerror to work cross browser
1 parent 8d930ce commit 07078c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/utils/previewEntry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ window.onerror = async function onError(
7272
// maybe i can use error.stack sometime but i'm having a hard time triggering
7373
// this function
7474

75-
let data = error.stack;
75+
let data = `${error.name}: ${error.message}`;
7676
const resolvedFileName = window.objectUrls[source];
7777
let resolvedLineNo = lineNumber;
7878
if (window.objectUrls[source] === 'index.html') {

0 commit comments

Comments
 (0)