Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
fix: do not crash on error obtaining repo issues (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Jul 29, 2019
1 parent 997e55a commit 95f13ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ async function getRepoIssues(repo: Repo, flags?: Flags): Promise<IssueResult> {
try {
res = await request<IssuesApiResponse>({url});
} catch (e) {
console.error(`Error fetching issues for ${repo.repo}.`);
console.error(e);
console.warn(`Error fetching issues for ${repo.repo}.`);
//console.warn(e);
return result;
}

if (!res.data || !res.data.Issues) {
Expand Down

0 comments on commit 95f13ec

Please sign in to comment.