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 {