From: Mikael Nordfeldth Date: Wed, 25 Feb 2015 00:14:27 +0000 (+0100) Subject: Throw more explicit exception in ImageFile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0854a84eb9f318944ce69c0c5cd6655a29fade4b;p=quix0rs-gnu-social.git Throw more explicit exception in ImageFile --- diff --git a/lib/imagefile.php b/lib/imagefile.php index 2dc260b1bf..fa57d524e5 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -141,7 +141,7 @@ class ImageFile public function getPath() { if (!file_exists($this->filepath)) { - throw new ServerException('No file in ImageFile filepath'); + throw new FileNotFoundException($this->filepath); } return $this->filepath;