about summary refs log tree commit diff
path: root/src/state/queries
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-09-04 09:17:14 -0700
committerGitHub <noreply@github.com>2024-09-04 09:17:14 -0700
commit45bb2477d8c89999e0b5f0c29ce496d060729805 (patch)
tree6b0b41131cfb1d43300d8adbea812fe32b3301c4 /src/state/queries
parentd94ff2695db945b49b88d47c1a3d0b85d8b939e0 (diff)
downloadvoidsky-45bb2477d8c89999e0b5f0c29ce496d060729805.tar.zst
[Video] Show better progress (#5133)
Diffstat (limited to 'src/state/queries')
-rw-r--r--src/state/queries/video/video.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state/queries/video/video.ts b/src/state/queries/video/video.ts
index 0c65e2260..4546595e7 100644
--- a/src/state/queries/video/video.ts
+++ b/src/state/queries/video/video.ts
@@ -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