Skip to content

Commit e466509

Browse files
committed
fix: if the URL is invalid, display an error message and continue processing
1 parent 33d3205 commit e466509

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ function getUnityChangesetsFromUrl(
9999
const match = raw.match(REGEXP_HUB_LINKS);
100100

101101
if (!match) {
102-
throw new Error(`No changesets found at '${url}'`);
102+
console.error(`No changesets found at '${url}'`);
103+
return [];
103104
}
104105

105106
return match.map((m) => UnityChangeset.createFromHref(m));

0 commit comments

Comments
 (0)