add better info for upload fail

This commit is contained in:
localhost 2026-01-07 21:03:12 +01:00
parent 7b10059b87
commit 906acde9bd
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ async function uploadVideo(video: string) {
},
body: await Bun.file(video).arrayBuffer()
})
if (!uploaded.ok) throw new Error(`failed to upload video - ${uploaded.status} (${uploaded.statusText})`)
return uploaded.url.replace(keys.endpoint, 'https://s4.archive.party')
}