Skip to content

Commit 6055814

Browse files
committed
Improve exception message
1 parent b7a5632 commit 6055814

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Drivers/AbstractDriver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ public function handleImageInput(mixed $input, ?array $decoders = null): ImageIn
6161
driver: $this
6262
)->handle($input);
6363
} catch (NotSupportedException) {
64-
throw new NotSupportedException('Unsupported image source');
64+
$type = is_object($input) ? $input::class : gettype($input);
65+
throw new NotSupportedException('Unsupported image source "' . $type . '"');
6566
}
6667

6768
if (!($result instanceof ImageInterface)) {

0 commit comments

Comments
 (0)