fix(e2e): preserve upgrade probe parse errors

This commit is contained in:
Vincent Koc
2026-04-30 23:51:03 -07:00
parent dffc295a74
commit 75b7ad2784

View File

@@ -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;