diff --git a/src/PhpWord/Element/Image.php b/src/PhpWord/Element/Image.php index 2cce610d..bf2b03d6 100644 --- a/src/PhpWord/Element/Image.php +++ b/src/PhpWord/Element/Image.php @@ -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;