Skip to content

Commit

Permalink
If names are empty error out.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 20, 2014
1 parent ad2b94d commit 44a56b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Console/Command/Task/SimpleBakeTask.php
Expand Up @@ -74,6 +74,9 @@ public function templateData() {
*/
public function execute($name = null) {
parent::execute();
if (empty($name)) {
return $this->error('You must provide a name to bake a ' . $this->name());
}
$name = Inflector::classify($name);
$this->bake($name);
$this->bakeTest($name);
Expand Down

0 comments on commit 44a56b6

Please sign in to comment.