Skip to content

Commit

Permalink
Fail when no events given
Browse files Browse the repository at this point in the history
  • Loading branch information
jm42 committed Nov 26, 2024
1 parent c56bfc7 commit 4b4e654
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/loaders/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,13 @@ export async function getInCommonEventsWithEvents(
totalEvents
)
} else {
console.warn('No new events?')
resolved = true
inCommonStream.close()
reject(new Error(
`Received empty list of events ` +
`when streaming event '${eventId}' in common`
))
return
}
}
if (
Expand Down

0 comments on commit 4b4e654

Please sign in to comment.