mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-09 11:52:32 +01:00
remove duplicate handling
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user