From 46c227bf3a14e98b15c4935390f2e009ed904f8b Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 15 Jul 2016 13:19:16 +0200 Subject: [PATCH] FileNotFoundException is more proper here --- lib/imagefile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/imagefile.php b/lib/imagefile.php index 626221d9a8..ab59e16b25 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -146,7 +146,7 @@ class ImageFile } if (!file_exists($imgPath)) { - throw new ServerException(sprintf('Image not available locally: %s', $imgPath)); + throw new FileNotFoundException($imgPath); } try { -- 2.39.5