Skip to content

Commit 5df5255

Browse files
committed
Log error from checking GitHub API access
1 parent 181f1d9 commit 5df5255

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)