Skip to content

Commit

Permalink
Add more explicit catches
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbrillig committed Sep 11, 2024
1 parent b4533bc commit f57b542
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/renderer/lib/gitnews-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ export function createFetcher(): Middleware<{}, AppReduxState> {
allNotes = [...allNotes, ...notes];
})
.catch((err) => {
throw new Error(err);
throw err;
});
}

await Promise.all(promises);
await Promise.all(promises).catch((err) => {
throw err;
});

allNotes.sort((a, b) => {
if (a.updatedAt < b.updatedAt) {
Expand Down

0 comments on commit f57b542

Please sign in to comment.