···256256 throw new Error('Job completed, but did not return a blob')
257257 onSuccess(status.blob)
258258 } else if (status.state === 'JOB_STATE_FAILED') {
259259- throw new Error('Job failed to process')
259259+ throw new Error(status.error ?? 'Job failed to process')
260260 }
261261 onStatusChange(status)
262262 return status