Merge pull request #821 from brutto/patch-1
Add info about Invalid image
This commit is contained in:
commit
c71069022e
@ -383,7 +383,7 @@ class Image extends AbstractElement
|
||||
$imageData = @getimagesize($source);
|
||||
}
|
||||
if (!is_array($imageData)) {
|
||||
throw new InvalidImageException();
|
||||
throw new InvalidImageException(sprintf('Invalid image: %s', $source));
|
||||
}
|
||||
list($actualWidth, $actualHeight, $imageType) = $imageData;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user