mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
remove duplicate handling
This commit is contained in:
parent
74be61cbdd
commit
b8496b4c2c
@ -22,10 +22,5 @@ export function errorDialog(e: unknown, initialText = "") {
|
|||||||
errorText = "An unknown error was thrown, see console.";
|
errorText = "An unknown error was thrown, see console.";
|
||||||
console.error(e);
|
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);
|
dialogBoxCreate(initialText + errorText);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user