sofhiaazzhr commited on
Commit
a638586
·
1 Parent(s): d973099

[NOTICKET][document] make more clean output for error message unspported file

Browse files
src/pipeline/document_pipeline/document_pipeline.py CHANGED
@@ -32,7 +32,7 @@ class DocumentPipeline:
32
  if file_type not in SUPPORTED_FILE_TYPES:
33
  raise HTTPException(
34
  status_code=400,
35
- detail=f"Unsupported file type. Supported: {SUPPORTED_FILE_TYPES}",
36
  )
37
 
38
  blob_name = await blob_storage.upload_file(content, file.filename, user_id)
 
32
  if file_type not in SUPPORTED_FILE_TYPES:
33
  raise HTTPException(
34
  status_code=400,
35
+ detail=f"Unsupported file type. Supported: {', '.join(SUPPORTED_FILE_TYPES)}",
36
  )
37
 
38
  blob_name = await blob_storage.upload_file(content, file.filename, user_id)