Skip to content

Commit e430224

Browse files
committed
Edit exception messages
1 parent 46e55b8 commit e430224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/InputHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ public static function usingDecoders(array $decoders, ?DriverInterface $driver =
9999
public function handle(mixed $input): ImageInterface|ColorInterface
100100
{
101101
if ($input === null) {
102-
throw new InvalidArgumentException('Unable to decode null');
102+
throw new InvalidArgumentException('Unable to decode image from null');
103103
}
104104

105105
if ($input === '') {
106-
throw new InvalidArgumentException('Unable to decode empty string');
106+
throw new InvalidArgumentException('Unable to decode image from empty string');
107107
}
108108

109109
// if handler has only one single decoder run it can run directly

0 commit comments

Comments
 (0)