Skip to content

Commit

Permalink
[Console][Command][LogicException] The command name cannot be empty. #…
Browse files Browse the repository at this point in the history
  • Loading branch information
skafandri authored and fabpot committed Sep 23, 2014
1 parent d059b1e commit 7d6fbd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Command/Command.php
Expand Up @@ -65,7 +65,7 @@ public function __construct($name = null)
$this->configure();

if (!$this->name) {
throw new \LogicException('The command name cannot be empty.');
throw new \LogicException(sprintf('The command defined in "%s" cannot have an empty name.', get_class($this)));
}
}

Expand Down
Expand Up @@ -41,7 +41,7 @@ public function testConstructor()

/**
* @expectedException \LogicException
* @expectedExceptionMessage The command name cannot be empty.
* @expectedExceptionMessage The command defined in "Symfony\Component\Console\Command\Command" cannot have an empty name.
*/
public function testCommandNameCannotBeEmpty()
{
Expand Down

0 comments on commit 7d6fbd9

Please sign in to comment.