[Video] Show better progress (#5133)
This commit is contained in:
parent
d94ff2695d
commit
45bb2477d8
2 changed files with 33 additions and 15 deletions
|
@ -256,7 +256,7 @@ const useUploadStatusQuery = ({
|
|||
throw new Error('Job completed, but did not return a blob')
|
||||
onSuccess(status.blob)
|
||||
} else if (status.state === 'JOB_STATE_FAILED') {
|
||||
throw new Error('Job failed to process')
|
||||
throw new Error(status.error ?? 'Job failed to process')
|
||||
}
|
||||
onStatusChange(status)
|
||||
return status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue