From 51e11d504e3e7efda791b240a67ab0f6f8bc09c4 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Wed, 13 Nov 2019 00:40:14 +0200 Subject: [PATCH] not readable exception --- app/controllers/avatars.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/avatars.php b/app/controllers/avatars.php index 8015489c87..56e8cd3a98 100644 --- a/app/controllers/avatars.php +++ b/app/controllers/avatars.php @@ -44,7 +44,7 @@ $avatarCallback = function ($type, $code, $width, $height, $quality) use ($types $type = 'png'; if (!is_readable($path)) { - throw new Exception('File not found in '.$path, 404); + throw new Exception('File not readable in '.$path, 500); } $cache = new Cache(new Filesystem('/storage/cache/app-0')); // Limit file number or size