From 0854a84eb9f318944ce69c0c5cd6655a29fade4b Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 25 Feb 2015 01:14:27 +0100 Subject: [PATCH] Throw more explicit exception in ImageFile --- lib/imagefile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5