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/DashSessionAgent.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/DashSessionAgent.ts')
| -rw-r--r-- | src/server/DashSession/DashSessionAgent.ts | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/DashSession/DashSessionAgent.ts b/src/server/DashSession/DashSessionAgent.ts index a094b3781..03ba33fee 100644 --- a/src/server/DashSession/DashSessionAgent.ts +++ b/src/server/DashSession/DashSessionAgent.ts @@ -10,9 +10,9 @@ import * as Archiver from "archiver";  import { resolve } from "path";  import rimraf = require("rimraf");  import { AppliedSessionAgent, ExitHandler } from "./Session/agents/applied_session_agent"; -import { ServerWorker, DeconstructedError } from "./Session/agents/server_worker"; +import { ServerWorker } from "./Session/agents/server_worker";  import { Monitor } from "./Session/agents/monitor"; -import { MessageHandler } from "./Session/agents/promisified_ipc_manager"; +import { MessageHandler, ErrorLike } from "./Session/agents/promisified_ipc_manager";  /**   * If we're the monitor (master) thread, we should launch the monitor logic for the session. @@ -70,7 +70,7 @@ export class DashSessionAgent extends AppliedSessionAgent {       * Prepares the body of the email with information regarding a crash event.       */      private _crashInstructions: string | undefined; -    private generateCrashInstructions({ name, message, stack }: DeconstructedError): string { +    private generateCrashInstructions({ name, message, stack }: ErrorLike): string {          if (!this._crashInstructions) {              this._crashInstructions = readFileSync(resolve(__dirname, "./templates/crash_instructions.txt"), { encoding: "utf8" });          } @@ -109,7 +109,7 @@ export class DashSessionAgent extends AppliedSessionAgent {      /**       * This sends an email with the generated crash report.       */ -    private dispatchCrashReport: MessageHandler<{ error: DeconstructedError }> = async ({ error: crashCause }) => { +    private dispatchCrashReport: MessageHandler<{ error: ErrorLike }> = async ({ error: crashCause }) => {          const { mainLog } = this.sessionMonitor;          const { notificationRecipient } = DashSessionAgent;          const error = await Email.dispatch({  | 
