[Video] Show better progress (#5133)

This commit is contained in:
Hailey 2024-09-04 09:17:14 -07:00 committed by GitHub
parent d94ff2695d
commit 45bb2477d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 15 deletions

View file

@ -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