fix: preserve beta verifier parse errors · openclaw/openclaw@38593cc
steipete
·
2026-05-12
·
via Recent Commits to openclaw:main
Commit 38593cc
fix: preserve beta verifier parse errors
(cherry picked from commit 454f6ed)
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -72,7 +72,7 @@ function parseJson(raw: string, label: string): unknown {
|
72 | 72 | return JSON.parse(raw) as unknown; |
73 | 73 | } catch (error) { |
74 | 74 | const message = error instanceof Error ? error.message : String(error); |
75 | | -throw new Error(`${label} returned invalid JSON: ${message}`); |
| 75 | +throw new Error(`${label} returned invalid JSON: ${message}`, { cause: error }); |
76 | 76 | } |
77 | 77 | } |
78 | 78 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
0 commit comments
Comments
(0)