mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
makeRuntimeRejectMsg expects the 'msg' to be string-like
This commit is contained in:
@@ -149,8 +149,9 @@ function startNetscript2Script(player: IPlayer, workerScript: WorkerScript): Pro
|
|||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
workerScript.errorMessage = makeRuntimeRejectMsg(workerScript, e);
|
// Don't know what to do with it, let's try making an error message out of it
|
||||||
throw new ScriptDeath(workerScript); // Don't know what to do with it, let's rethrow.
|
workerScript.errorMessage = makeRuntimeRejectMsg(workerScript, "" + e);
|
||||||
|
throw new ScriptDeath(workerScript);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user