Skip to content

Commit

Permalink
fix: prevent errors from stopping the processes (#58)
Browse files Browse the repository at this point in the history
* fix: prevent errors from stopping the processes

* fix: prevent errors from stopping the processes
  • Loading branch information
wolfenrain authored Nov 27, 2023
1 parent 9f3fc7a commit 507d037
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}): ${await response.json()}`);
return pullRequests;
}

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

0 comments on commit 507d037

Please sign in to comment.