mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-16 18:34:18 +00:00
fix: preserve beta verifier parse errors
(cherry picked from commit 454f6ed402)
This commit is contained in:
@@ -72,7 +72,7 @@ function parseJson(raw: string, label: string): unknown {
|
||||
return JSON.parse(raw) as unknown;
|
||||
} catch (error) {
|
||||
const message = error instanceof Error ? error.message : String(error);
|
||||
throw new Error(`${label} returned invalid JSON: ${message}`);
|
||||
throw new Error(`${label} returned invalid JSON: ${message}`, { cause: error });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user