Skip to content
Permalink
Browse files

send errors to IPC LOG

  • Loading branch information...
Manuel-777 committed Feb 24, 2019
1 parent 08274c3 commit db8ca648c8ea8efb121145e2c2f0df6ba2e42f5c
Showing with 3 additions and 0 deletions.
  1. +3 −0 window_background/background.js
@@ -380,6 +380,7 @@ window.onerror = (msg, url, line, col, err) => {
}
error.id = sha1(error.msg + playerId);
httpApi.httpSendError(error);
ipc_send("ipc_log", "Background Error:"+error.join(' - '));
}

process.on('uncaughtException', function(err){
@@ -392,12 +393,14 @@ process.on('uncaughtException', function(err){
console.log("ERROR: ", error);
error.id = sha1(error.msg + playerId);
httpApi.httpSendError(error);
ipc_send("ipc_log", `Background ${error.stack}: ${error.join(' - ')}`);
})

//
ipc.on('error', function (event, err) {
err.id = sha1(err.msg + playerId);
httpApi.httpSendError(err);
ipc_send("ipc_log", "Background error:"+err.join(' - '));
});

//

0 comments on commit db8ca64

Please sign in to comment.
You can’t perform that action at this time.