From 9c561b81816b25febc97a1c6847ff00cd52889b6 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 10 May 2015 22:00:58 -0400 Subject: [PATCH] Add warning when no template is rendered. Refs #89 --- src/Shell/Task/TemplateTask.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Shell/Task/TemplateTask.php b/src/Shell/Task/TemplateTask.php index ab956eeaa..c494ce0fd 100644 --- a/src/Shell/Task/TemplateTask.php +++ b/src/Shell/Task/TemplateTask.php @@ -368,6 +368,7 @@ public function bake($action, $content = '') $content = $this->getContent($action); } if (empty($content)) { + $this->err("No generated content for '{$action}.ctp', not generating template."); return false; } $this->out("\n" . sprintf('Baking `%s` view file...', $action), 1, Shell::QUIET);