Update index.ts

This commit is contained in:
nexryai
2026-01-10 22:39:55 +09:00
committed by GitHub
parent 411dcc5024
commit e16bba5945
+2
View File
@@ -263,6 +263,8 @@ async function streamUploadToDrive(accessToken: string, stream: ReadableStream |
const uploadUrl = initRes.headers.get("Location");
if (!uploadUrl) {
console.error(initRes.status);
console.error(await initRes.text());
throw new Error("Failed to get upload URL");
}