Skip to content

Commit f2560ab

Browse files
committed
fix(auth): improve error handling on repos page
1 parent 3702acd commit f2560ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ui/views/RepoList/Components/RepoOverview.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,9 @@ export default function Repositories(props) {
581581
.get(`https://api.github.com/repos/${props.data.project}/${props.data.name}`)
582582
.then((res) => {
583583
setGitHub(res.data);
584+
})
585+
.catch((err) => {
586+
console.error(`Error fetching GitHub repository ${props.data.project}/${props.data.name}: ${err}`);
584587
});
585588
};
586589

0 commit comments

Comments
 (0)