diff options
| author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-10-22 20:27:19 +0530 |
|---|---|---|
| committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-10-22 20:27:19 +0530 |
| commit | 1769f9a3cd1952405bcdec2d5186ed24ba34dc30 (patch) | |
| tree | 8c465f951e3b873475a35886fcb3ebc4316957bc /src/server/DashSession/Session/agents/server_worker.ts | |
| parent | e0871e894b1a2106647d04904b6efbbf2f2f3fe2 (diff) | |
| parent | f9f7ac461534a3cfc9a03490d7803e83ea4d8aad (diff) | |
Merge branch 'restored_server_monitor' of https://github.com/browngraphicslab/Dash-Web into restored_server_monitor
Diffstat (limited to 'src/server/DashSession/Session/agents/server_worker.ts')
| -rw-r--r-- | src/server/DashSession/Session/agents/server_worker.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/server/DashSession/Session/agents/server_worker.ts b/src/server/DashSession/Session/agents/server_worker.ts index e3ec4e1c6..afa5fc68d 100644 --- a/src/server/DashSession/Session/agents/server_worker.ts +++ b/src/server/DashSession/Session/agents/server_worker.ts @@ -1,6 +1,6 @@ import { ExitHandler } from "./applied_session_agent"; import { isMaster } from "cluster"; -import { manage } from "./promisified_ipc_manager"; +import { manage, ErrorLike } from "./promisified_ipc_manager"; import IPCMessageReceiver from "./process_message_router"; import { red, green, white, yellow } from "colors"; import { get } from "request-promise"; @@ -113,7 +113,7 @@ 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: DeconstructedError = { name, message, stack }; + const deconstructed_error: ErrorLike = { name, message, stack }; this.emit(Monitor.IntrinsicEvents.CrashDetected, { error: deconstructed_error }); await this.executeExitHandlers(error); // notify master thread (which will log update in the console) of crash event via IPC @@ -160,9 +160,3 @@ export class ServerWorker extends IPCMessageReceiver { } } - -export interface DeconstructedError { - name: string; - message: string; - stack: string | undefined; -}
\ No newline at end of file |
