Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Log object verification errors after retries

Richie McIlroyaa762d2ab9d4
diff --git a/apps/web/app/api/upload/[...route]/multipart.ts b/apps/web/app/api/upload/[...route]/multipart.ts
index 0887415be..84612f151 100644
--- a/apps/web/app/api/upload/[...route]/multipart.ts
+++ b/apps/web/app/api/upload/[...route]/multipart.ts
@@ -403,13 +403,13 @@ app.post(
`Object verification successful: ContentType=${headResult.ContentType}, ContentLength=${headResult.ContentLength}`,
),
),
- Effect.catchAll((headError) =>
- Effect.logError(`Warning: Unable to verify object: ${headError}`),
- ),
Effect.retry({
times: 3,
schedule: Schedule.exponential("50 millis"),
}),
+ Effect.catchAll((headError) =>
+ Effect.logError(`Warning: Unable to verify object: ${headError}`),
+ ),
);
if (isRawRecorderUpload(subpath)) {