diff --git a/scripts/verify-packaged-ghidra-windows.mjs b/scripts/verify-packaged-ghidra-windows.mjs index c37da5b673..6770e09709 100644 --- a/scripts/verify-packaged-ghidra-windows.mjs +++ b/scripts/verify-packaged-ghidra-windows.mjs @@ -75,8 +75,10 @@ if (!internalWorkspace) { commands === undefined ? workspaceOwner.close() : commands.close(), ]); } catch (cause) { - if (typeof cause.stdout === "string") process.stdout.write(cause.stdout); - if (typeof cause.stderr === "string") process.stderr.write(cause.stderr); + const stdout = cause?.snapshot?.stdout?.text; + const stderr = cause?.snapshot?.stderr?.text; + if (typeof stdout === "string") process.stdout.write(stdout); + if (typeof stderr === "string") process.stderr.write(stderr); throw cause; } const report = JSON.parse(result.stdout); diff --git a/scripts/verify/apple/dispatch.mjs b/scripts/verify/apple/dispatch.mjs index 9d7c4a3054..cfb77eff32 100644 --- a/scripts/verify/apple/dispatch.mjs +++ b/scripts/verify/apple/dispatch.mjs @@ -394,7 +394,7 @@ try { } catch (cause) { assert.equal(cause.code, 1); cliFailure = analysisErrorProjectionSchema.parse( - cliOperationFailurePayload(JSON.parse(cause.stdout)), + cliOperationFailurePayload(JSON.parse(cause.snapshot.stdout.text)), ); } assert.equal(cliFailure.code, "unsupported_target");