FileNotFoundException is more proper here

This commit is contained in:
Mikael Nordfeldth 2016-07-15 13:19:16 +02:00
parent 36cfe9f857
commit 46c227bf3a

View File

@ -146,7 +146,7 @@ class ImageFile
} }
if (!file_exists($imgPath)) { if (!file_exists($imgPath)) {
throw new ServerException(sprintf('Image not available locally: %s', $imgPath)); throw new FileNotFoundException($imgPath);
} }
try { try {