MISC: Change message of Singularity error and uncaught promise error (#2174)

This commit is contained in:
catloversg
2025-06-22 04:29:59 +07:00
committed by GitHub
parent 38d033368e
commit 9ba1bc7cfb
2 changed files with 4 additions and 11 deletions
+1 -5
View File
@@ -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");
});
}