mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
Improve atExit error message
This commit is contained in:
parent
0c358c588e
commit
32afaae3e2
@ -62,7 +62,7 @@ function stopAndCleanUpWorkerScript(ws: WorkerScript): void {
|
|||||||
let message = e instanceof ScriptDeath ? e.errorMessage : String(e);
|
let message = e instanceof ScriptDeath ? e.errorMessage : String(e);
|
||||||
message = message.replace(/.*\|DELIMITER\|/, "");
|
message = message.replace(/.*\|DELIMITER\|/, "");
|
||||||
dialogBoxCreate(
|
dialogBoxCreate(
|
||||||
`Error trying to call atExit for script ${ws.name} on ${ws.hostname} ${ws.scriptRef.args}\n` + message,
|
`Error trying to call atExit for script ${[ws.name, ...ws.args].join(" ")} on ${ws.hostname}\n ${message}`,
|
||||||
);
|
);
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user