]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Throw more explicit exception in ImageFile
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 25 Feb 2015 00:14:27 +0000 (01:14 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 25 Feb 2015 00:14:27 +0000 (01:14 +0100)
lib/imagefile.php

index 2dc260b1bf8cad511abe131d254ab4648db659d8..fa57d524e5fbb0ccb11ff653593d9cf1e94690f9 100644 (file)
@@ -141,7 +141,7 @@ class ImageFile
     public function getPath()
     {
         if (!file_exists($this->filepath)) {
     public function getPath()
     {
         if (!file_exists($this->filepath)) {
-            throw new ServerException('No file in ImageFile filepath');
+            throw new FileNotFoundException($this->filepath);
         }
 
         return $this->filepath;
         }
 
         return $this->filepath;