Skip to content

Commit 8539202

Browse files
authored
Merge pull request #115 from github/joshmgross/log-api-error
Log error from checking GitHub API access
2 parents 49bac09 + 5df5255 commit 8539202

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export async function canReachGitHubAPI() {
1010
"X-GitHub-Api-Version": "2022-11-28"
1111
}
1212
});
13-
} catch {
14-
logError(new Error("Unable to connect to GitHub API"));
13+
} catch (e) {
14+
logError(e as Error, "Error getting GitHub context");
1515
return false;
1616
}
1717
return true;

0 commit comments

Comments
 (0)