about summary refs log tree commit diff
path: root/src/lib/media/video/errors.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-09-03 15:09:09 +0100
committerGitHub <noreply@github.com>2024-09-03 15:09:09 +0100
commit0e1de199030e4106c791978c8a6bf52a90bbc269 (patch)
tree7beda35de08569c1816996ca1d1264bc0b804e48 /src/lib/media/video/errors.ts
parentf9d736653ccbb6c85e54382da0c59ec8af08a0eb (diff)
downloadvoidsky-0e1de199030e4106c791978c8a6bf52a90bbc269.tar.zst
[Video] Upload errors and UI improvements (#5092)
* surface errors in UI

* style progress indicator

* remove job status progress

* rm log

* fix webm ext
Diffstat (limited to 'src/lib/media/video/errors.ts')
-rw-r--r--src/lib/media/video/errors.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/media/video/errors.ts b/src/lib/media/video/errors.ts
index 701a7e235..a06a239e1 100644
--- a/src/lib/media/video/errors.ts
+++ b/src/lib/media/video/errors.ts
@@ -4,3 +4,10 @@ export class VideoTooLargeError extends Error {
     this.name = 'VideoTooLargeError'
   }
 }
+
+export class ServerError extends Error {
+  constructor(message: string) {
+    super(message)
+    this.name = 'ServerError'
+  }
+}