Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

thumbnail: Provide a more explicit hint than "Bad".

Alex Vandivera091b9ef81c1
diff --git a/zerver/lib/thumbnail.py b/zerver/lib/thumbnail.py
index 22e9c07d4ab..a364999d710 100644
--- a/zerver/lib/thumbnail.py
+++ b/zerver/lib/thumbnail.py
@@ -60,7 +60,7 @@ def libvips_check_image(image_data: bytes) -> Iterator[pyvips.Image]:
yield source_image
except pyvips.Error as e: # nocoverage
logging.exception(e)
- raise BadImageError(_("Bad image!"))
+ raise BadImageError(_("Image is corrupted or truncated"))
def resize_avatar(image_data: bytes, size: int = DEFAULT_AVATAR_SIZE) -> bytes: