Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

log errors (#5139)

authored by

Samuel Newman and committed by
GitHub
3eef62d9 e2a244b9

+12 -6
+12 -6
src/state/queries/video/video.ts
··· 123 123 blobRef, 124 124 }) 125 125 }, 126 - onError: useCallback(() => { 127 - dispatch({ 128 - type: 'SetError', 129 - error: _(msg`Video failed to process`), 130 - }) 131 - }, [_]), 126 + onError: useCallback( 127 + error => { 128 + logger.error('Error processing video', {safeMessage: error}) 129 + dispatch({ 130 + type: 'SetError', 131 + error: _(msg`Video failed to process`), 132 + }) 133 + }, 134 + [_], 135 + ), 132 136 }) 133 137 134 138 const {mutate: onVideoCompressed} = useUploadVideoMutation({ ··· 140 144 setJobId(response.jobId) 141 145 }, 142 146 onError: e => { 147 + logger.error('Error uploading video', {safeMessage: e}) 143 148 if (e instanceof ServerError) { 144 149 dispatch({ 145 150 type: 'SetError', ··· 171 176 onVideoCompressed(video) 172 177 }, 173 178 onError: e => { 179 + logger.error('Error uploading video', {safeMessage: e}) 174 180 if (e instanceof VideoTooLargeError) { 175 181 dispatch({ 176 182 type: 'SetError',