Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

don't throw, but log OTA listener errors (#958)

authored by

Ansh and committed by
GitHub
40a87261 269c0687

+4 -1
+4 -1
src/lib/hooks/useOTAUpdate.ts
··· 42 42 (event: Updates.UpdateEvent) => { 43 43 store.log.debug('useOTAUpdate: Listening for update...') 44 44 if (event.type === Updates.UpdateEventType.ERROR) { 45 - throw new Error(event.message) 45 + store.log.error( 46 + 'useOTAUpdate: Error while listening for update', 47 + event.message, 48 + ) 46 49 } else if (event.type === Updates.UpdateEventType.NO_UPDATE_AVAILABLE) { 47 50 // Handle no update available 48 51 // do nothing