Skip to content

Commit

Permalink
Pass graph generation exceptions to stream controller (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxbse authored May 17, 2024
1 parent 442f260 commit 3c8e5e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/instagram/follower.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ export function fetchFollowerGraph({root, session, limits, includeFollowing}: {
return
}

await createFollowerGraph({limits, graph, session, controller, includeFollowing});
try {
await createFollowerGraph({limits, graph, session, controller, includeFollowing});
} catch (e) {
controller.error(e)
}

controller.close();
},
Expand Down

0 comments on commit 3c8e5e5

Please sign in to comment.