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.pyindex 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_imageexcept pyvips.Error as e: # nocoveragelogging.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: