From 75b7ad2784ef8cfc7e9986b30a80a7ec4fb23597 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Thu, 30 Apr 2026 23:51:03 -0700 Subject: [PATCH] fix(e2e): preserve upgrade probe parse errors --- scripts/e2e/lib/upgrade-survivor/probe-gateway.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/e2e/lib/upgrade-survivor/probe-gateway.mjs b/scripts/e2e/lib/upgrade-survivor/probe-gateway.mjs index e847cfeab50..b39f6d75285 100644 --- a/scripts/e2e/lib/upgrade-survivor/probe-gateway.mjs +++ b/scripts/e2e/lib/upgrade-survivor/probe-gateway.mjs @@ -35,7 +35,7 @@ let body; try { body = text ? JSON.parse(text) : null; } catch (error) { - throw new Error(`${url} returned non-JSON probe body: ${String(error)}`); + throw new Error(`${url} returned non-JSON probe body: ${String(error)}`, { cause: error }); } const elapsedMs = Date.now() - startedAt;