Skip to content

Commit c710690

Browse files
authored
Merge pull request #821 from brutto/patch-1
Add info about Invalid image
2 parents 0a3f873 + 0652302 commit c710690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Element/Image.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ private function checkImage($source)
383383
$imageData = @getimagesize($source);
384384
}
385385
if (!is_array($imageData)) {
386-
throw new InvalidImageException();
386+
throw new InvalidImageException(sprintf('Invalid image: %s', $source));
387387
}
388388
list($actualWidth, $actualHeight, $imageType) = $imageData;
389389

0 commit comments

Comments
 (0)