mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 11:24:47 +00:00
ci(release): preserve candidate JSON parse cause
This commit is contained in:
@@ -151,6 +151,7 @@ function readJson(path, label) {
|
||||
} catch (error) {
|
||||
throw new Error(
|
||||
`${label} is invalid JSON: ${error instanceof Error ? error.message : String(error)}`,
|
||||
{ cause: error },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user