[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
2 changed files with 33 additions and 15 deletions
+1 -1
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