diff --git a/src/UncaughtPromiseHandler.ts b/src/UncaughtPromiseHandler.ts
index 5777fcb06..e0b15c645 100644
--- a/src/UncaughtPromiseHandler.ts
+++ b/src/UncaughtPromiseHandler.ts
@@ -1,3 +1,4 @@
+import { WorkerScript } from "./Netscript/WorkerScript";
import { isScriptErrorMessage } from "./NetscriptEvaluator";
import { dialogBoxCreate } from "./ui/React/DialogBox";
@@ -13,6 +14,11 @@ export function setupUncaughtPromiseHandler(): void {
msg += "
";
msg += errorMsg;
dialogBoxCreate(msg);
+ } else if (e.reason instanceof WorkerScript) {
+ const msg =
+ `UNCAUGHT PROMISE ERROR
You forgot to await a promise
${e.reason.name}@${e.reason.hostname}
` +
+ `Maybe hack / grow / weaken ?`;
+ dialogBoxCreate(msg);
}
});
}