Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
Server Serverless 2023-08-07
Description
Passing the following function to funWithArgs will not propagate the internal error:
import { funWithArgs } from "jstests/libs/parallel_shell_helpers.js";
|
|
|
const test = true;
|
const awaitShell = startParallelShell(funWithArgs(async function(test) {
|
throw new Error("intentionally thrown")
|
}, test), undefined, true);
|
|
|
awaitShell();
|