mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-06 07:37:56 +02:00
MISC: Change message of Singularity error and uncaught promise error (#2174)
This commit is contained in:
@@ -3,10 +3,6 @@ import { handleUnknownError } from "./utils/ErrorHandler";
|
||||
export function setupUncaughtPromiseHandler(): void {
|
||||
window.addEventListener("unhandledrejection", (e) => {
|
||||
e.preventDefault();
|
||||
handleUnknownError(
|
||||
e.reason,
|
||||
null,
|
||||
"UNCAUGHT PROMISE ERROR\nYou forgot to await a promise\nmaybe hack / grow / weaken ?\n\n",
|
||||
);
|
||||
handleUnknownError(e.reason, null, "UNCAUGHT PROMISE ERROR. Caused by:\n\n");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user