Skip to content

Commit d8655d3

Browse files
tw4lSuaYoo
authored andcommitted
Use id for thumbnail size error detail
1 parent be9ff04 commit d8655d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/btrixcloud/colls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ async def stream_iter():
764764
await self.storage_ops.delete_file_object(org, thumbnail_file)
765765
raise HTTPException(
766766
status_code=400,
767-
detail="Upload failed: maxiumum thumbnail size (2 MB) exceeded",
767+
detail="max_thumbnail_size_2_mb_exceeded",
768768
)
769769

770770
if coll.thumbnail:

0 commit comments

Comments
 (0)