]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
FileNotFoundException is more proper here
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 15 Jul 2016 11:19:16 +0000 (13:19 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 15 Jul 2016 11:19:16 +0000 (13:19 +0200)
lib/imagefile.php

index 626221d9a84549b36971c5f4c7a861a8b4d44f0a..ab59e16b253f15ff43f83cd7fb85ed6a4fdb5ebc 100644 (file)
@@ -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 {