From 35484f92ec62627e125a18b931439739934a95dd Mon Sep 17 00:00:00 2001 From: "Elias J. Perez" Date: Thu, 8 Mar 2018 11:39:44 -0500 Subject: [PATCH] [Generator] Remove raise from Template We do not raise errors in the CLI, instead we log a message to the console. --- src/amber/cli/templates/template.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amber/cli/templates/template.cr b/src/amber/cli/templates/template.cr index 78c0912d5..5be4c4783 100644 --- a/src/amber/cli/templates/template.cr +++ b/src/amber/cli/templates/template.cr @@ -106,7 +106,7 @@ module Amber::CLI puts "Rendering View #{name}" View.new(name, fields).render(directory, list: true, color: true) else - raise "Template not found" + CLI.logger.error "Template not found", "Generate", :light_red end end