FileNotFoundException is more proper here
This commit is contained in:
parent
36cfe9f857
commit
46c227bf3a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user