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); }