mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
fix unknown script die for known reason
This commit is contained in:
parent
e117548895
commit
7d6947ee01
@ -20,8 +20,7 @@ export function makeRuntimeRejectMsg(workerScript: WorkerScript, msg: string): s
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const url in BlobsMap) {
|
for (const url in BlobsMap) {
|
||||||
console.log(url);
|
msg = msg.replace(new RegExp(url, "g"), BlobsMap[url]);
|
||||||
// msg = msg.replace(new RegExp(url, "g"), BlobsMap[url]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return "|DELIMITER|" + server.hostname + "|DELIMITER|" + workerScript.name + "|DELIMITER|" + msg;
|
return "|DELIMITER|" + server.hostname + "|DELIMITER|" + workerScript.name + "|DELIMITER|" + msg;
|
||||||
|
@ -140,7 +140,8 @@ function startNetscript2Script(workerScript: WorkerScript): Promise<WorkerScript
|
|||||||
workerScript.errorMessage = e;
|
workerScript.errorMessage = e;
|
||||||
throw workerScript;
|
throw workerScript;
|
||||||
}
|
}
|
||||||
throw e; // Don't know what to do with it, let's rethrow.
|
workerScript.errorMessage = makeRuntimeRejectMsg(workerScript, e);
|
||||||
|
throw workerScript; // Don't know what to do with it, let's rethrow.
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user