mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:20:43 +00:00
fix(e2e): preserve upgrade probe parse errors
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user