From 19ad058d0676819536953074091d915dfec8e39f Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Thu, 29 Sep 2016 21:51:07 +1000 Subject: Add message to NotSquareException thrown from Avatar This prevents cryptic messages such as the following, from `user_ldap`: Could not set avatar for uid=user,ou=People,dc=example,dc=net, because: Signed-off-by: Olivier Mehani Add message to NotPermittedException thrown from Files\Nodes\Folder Ditto. Don't use translation macros here as this seems to be pretty low-level errors that generally get caught and prettified, and I don't want to unduly clog down the lower layers. Signed-off-by: Olivier Mehani fixup! Add message to NotPermittedException thrown from Files\Nodes\Folder --- lib/private/Avatar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Avatar.php') diff --git a/lib/private/Avatar.php b/lib/private/Avatar.php index c3a068701df..fc1909c3bda 100644 --- a/lib/private/Avatar.php +++ b/lib/private/Avatar.php @@ -131,7 +131,7 @@ class Avatar implements IAvatar { } if (!($img->height() === $img->width())) { - throw new NotSquareException(); + throw new NotSquareException($this->l->t("Avatar image is not square")); } $this->remove(); -- cgit v1.2.3