Skip to content

Commit 2d525c3

Browse files
committed
fix(ci): preserve protocol allowlist parse errors
1 parent a91e15e commit 2d525c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/check-protocol-event-coverage.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ function loadAllowlist(rootDir, fsImpl) {
314314
try {
315315
parsed = JSON.parse(raw);
316316
} catch (error) {
317-
throw new Error(`${ALLOWLIST_FILE} is not valid JSON: ${String(error)}`);
317+
throw new Error(`${ALLOWLIST_FILE} is not valid JSON: ${String(error)}`, { cause: error });
318318
}
319319
for (const client of ["ios", "android"]) {
320320
if (typeof parsed[client] !== "object" || parsed[client] === null) {

0 commit comments

Comments
 (0)