aboutsummaryrefslogtreecommitdiff
path: root/src/server/DashSession/Session/agents/server_worker.ts
diff options
context:
space:
mode:
authorGeireann Lindfield Roberts <60007097+geireann@users.noreply.github.com>2020-11-01 22:58:45 +0800
committerGeireann Lindfield Roberts <60007097+geireann@users.noreply.github.com>2020-11-01 22:58:45 +0800
commitfa65753233e17d90a3306432bba9d212307e5b68 (patch)
tree005123322c4a65b558e7ece45edcffe20b8dca1d /src/server/DashSession/Session/agents/server_worker.ts
parent3def219d20179486fe3427c957f680e5d1d705df (diff)
parent7b96bc4770bd275db0ddd664bb6e8ff33bbbcb78 (diff)
Merge branch 'master' into presentation_v1
Diffstat (limited to 'src/server/DashSession/Session/agents/server_worker.ts')
-rw-r--r--src/server/DashSession/Session/agents/server_worker.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/DashSession/Session/agents/server_worker.ts b/src/server/DashSession/Session/agents/server_worker.ts
index afa5fc68d..6a19bfa5d 100644
--- a/src/server/DashSession/Session/agents/server_worker.ts
+++ b/src/server/DashSession/Session/agents/server_worker.ts
@@ -113,8 +113,8 @@ export class ServerWorker extends IPCMessageReceiver {
this.shouldServerBeResponsive = false;
// communicates via IPC to the master thread that it should dispatch a crash notification email
const { name, message, stack } = error;
- const deconstructed_error: ErrorLike = { name, message, stack };
- this.emit(Monitor.IntrinsicEvents.CrashDetected, { error: deconstructed_error });
+ const errorLike: ErrorLike = { name, message, stack };
+ this.emit(Monitor.IntrinsicEvents.CrashDetected, { error: errorLike });
await this.executeExitHandlers(error);
// notify master thread (which will log update in the console) of crash event via IPC
this.lifecycleNotification(red(`crash event detected @ ${new Date().toUTCString()}`));