From b8496b4c2cec8a99243451e5c827142e7aaef546 Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Mon, 29 Aug 2022 03:47:56 -0400 Subject: [PATCH] remove duplicate handling --- src/ui/React/DialogBox.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ui/React/DialogBox.tsx b/src/ui/React/DialogBox.tsx index 00fc5b4cf..6974dfb94 100644 --- a/src/ui/React/DialogBox.tsx +++ b/src/ui/React/DialogBox.tsx @@ -22,10 +22,5 @@ export function errorDialog(e: unknown, initialText = "") { errorText = "An unknown error was thrown, see console."; console.error(e); } - - if (!initialText && e instanceof ScriptDeath) { - const basicHeader = `ERROR\n${e.name}@${e.hostname} (PID - ${e.pid})\n\n`; - if (e.errorMessage.includes(basicHeader)) initialText = basicHeader; - } dialogBoxCreate(initialText + errorText); }