diff --git a/src/Input/Exceptions/RequiredInputMissingException.php b/src/Input/Exceptions/RequiredInputMissingException.php index c13bfd4..d7c4b43 100644 --- a/src/Input/Exceptions/RequiredInputMissingException.php +++ b/src/Input/Exceptions/RequiredInputMissingException.php @@ -15,10 +15,8 @@ class RequiredInputMissingException extends \Exception $this->input = $input; return parent::__construct(sprintf( - 'missing %s %s%s', - $input->getType(), - 'option' == $input->getType() ? '-' : '', - 'option' == $input->getType() ? $input->name() : strtoupper($input->name()) + 'missing %s', + $input->getDisplayName() ), $code, $previous); } diff --git a/src/Input/Exceptions/RequiredInputMissingValueException.php b/src/Input/Exceptions/RequiredInputMissingValueException.php index b04c292..03f97a8 100644 --- a/src/Input/Exceptions/RequiredInputMissingValueException.php +++ b/src/Input/Exceptions/RequiredInputMissingValueException.php @@ -15,11 +15,10 @@ class RequiredInputMissingValueException extends \Exception $this->input = $input; return parent::__construct(sprintf( - '%s %s%s is missing a value', - $input->getType(), - 'option' == $input->getType() ? '-' : '', - 'option' == $input->getType() ? $input->name() : strtoupper($input->name()) + 'a value is required for %s', + $input->getDisplayName() ), $code, $previous); + } public function getInput(): Input\AbstractInputType