Skip to content

Commit

Permalink
Improve Error message
Browse files Browse the repository at this point in the history
  • Loading branch information
remzikocak authored Jul 27, 2023
1 parent a17c196 commit 7f19238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Types.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function has(string $name): bool
public function get(string $name): Type
{
if (! $this->has($name)) {
throw new InvalidArgumentException('Option type does not exist!');
throw new InvalidArgumentException("Option type [{$name}] does not exist.");
}

return $this->types[trim($name)];
Expand Down

0 comments on commit 7f19238

Please sign in to comment.