Skip to content

Commit

Permalink
fix: prevent errors from stopping the processes
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfenrain committed Nov 16, 2023
1 parent 6ecc428 commit 9a58079
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ async function getMorePullRequests(org: string, repo: Repo, page: number = 1): P
});

if (response.status != 200) {
throw new Error(`[ERROR] GET ${url} (${response.status})`);
console.error(`[ERROR] GET ${url} (${response.status})`);
return pullRequests;
}

const body = (await response.json()) as Array<JSONObject>;
Expand Down

0 comments on commit 9a58079

Please sign in to comment.