Skip to content

Commit 7a855eb

Browse files
committed
remove prefix
1 parent 8a9eb1c commit 7a855eb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/sim/app/workspace/[workspaceId]/knowledge/hooks/use-knowledge-upload.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,12 @@ export function useKnowledgeUpload(options: UseKnowledgeUploadOptions = {}) {
890890

891891
if (!batchResponse.ok) {
892892
const { message } = await readResponseError(batchResponse)
893-
throw new Error(`Batch ${batchIndex + 1} presigned URL generation failed: ${message}`)
893+
logger.error('Batch presigned URL generation failed', {
894+
batchIndex: batchIndex + 1,
895+
totalBatches: batches.length,
896+
status: batchResponse.status,
897+
})
898+
throw new Error(message)
894899
}
895900

896901
const { files: presignedData } = await batchResponse.json()

0 commit comments

Comments
 (0)