Skip to content

Commit

Permalink
Add warning when no template is rendered.
Browse files Browse the repository at this point in the history
Refs #89
  • Loading branch information
markstory committed May 11, 2015
1 parent 21e5df0 commit 9c561b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Shell/Task/TemplateTask.php
Expand Up @@ -368,6 +368,7 @@ public function bake($action, $content = '')
$content = $this->getContent($action);
}
if (empty($content)) {
$this->err("<warning>No generated content for '{$action}.ctp', not generating template.");
return false;
}
$this->out("\n" . sprintf('Baking `%s` view file...', $action), 1, Shell::QUIET);
Expand Down

0 comments on commit 9c561b8

Please sign in to comment.