Merge pull request #1716 from Snarling/throw-fix

Fix error throwing for unknown errors
This commit is contained in:
hydroflame 2021-11-13 10:06:04 -05:00 committed by GitHub
commit db82cdcdca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -138,7 +138,8 @@ function startNetscript2Script(workerScript: WorkerScript): Promise<WorkerScript
workerScript.errorMessage = e;
throw workerScript;
}
throw e; // Don't know what to do with it, let's rethrow.
workerScript.errorMessage = makeRuntimeRejectMsg(workerScript, "Unknown error: " + JSON.stringify(e));
throw workerScript;
});
}