File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,16 @@ export function useUploadVideo({
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,6 +144,7 @@ export function useUploadVideo({
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,6 +176,7 @@ export function useUploadVideo({
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' ,
You can’t perform that action at this time.
0 commit comments