Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,12 @@ export default class Changelog {
await pMap(
commitInfos,
async (commitInfo: CommitInfo) => {
if (commitInfo.issueNumber) {
commitInfo.githubIssue = await this.github.getIssueData(this.config.repo, commitInfo.issueNumber);
try {
if (commitInfo.issueNumber) {
commitInfo.githubIssue = await this.github.getIssueData(this.config.repo, commitInfo.issueNumber);
}
} catch (err: any) {
console.error(`Error getting issue data: ${err.message}`);
}

progressBar.tick();
Expand Down
7 changes: 6 additions & 1 deletion src/github-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ export default class GithubAPI {
if (res.ok) {
return parsedResponse;
}
throw new ConfigurationError(`Fetch error: ${res.statusText}.\n${JSON.stringify(parsedResponse)}`);

if (res.status === 404) {
throw new ConfigurationError(`Not Found [${url}]`);
}

throw new ConfigurationError(`Fetch error [${url}]: ${res.statusText}.\n${JSON.stringify(parsedResponse)}`);
}

private getAuthToken(): string {
Expand Down
Loading