From: Mikael Nordfeldth Date: Fri, 15 Jul 2016 11:19:16 +0000 (+0200) Subject: FileNotFoundException is more proper here X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=46c227bf3a14e98b15c4935390f2e009ed904f8b;p=quix0rs-gnu-social.git FileNotFoundException is more proper here --- 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 {