Skip to content

Commit c17840f

Browse files
committed
fix(ios): read the pod probe error safely
1 parent 77ba06e commit c17840f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎lib/services/cocoapods-service.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ export class CocoaPodsService implements ICocoaPodsService {
7878
});
7979
} catch (err) {
8080
if (
81-
!/Bad CPU type in executable|Exec format error/i.test(err.message)
81+
!/Bad CPU type in executable|Exec format error/i.test(
82+
String(err?.message ?? err),
83+
)
8284
) {
8385
throw err;
8486
}

0 commit comments

Comments
 (0)