diff --git a/lib/fontcustom/cli.rb b/lib/fontcustom/cli.rb index 481e27e2..fbb97c91 100644 --- a/lib/fontcustom/cli.rb +++ b/lib/fontcustom/cli.rb @@ -78,6 +78,7 @@ def compile(input = nil) rescue Fontcustom::Error => e say_status :error, e.message, :red puts e.backtrace.join("\n") if options[:debug] + exit 1 end desc "watch [INPUT] [OPTIONS]", "Watches INPUT for changes and regenerates files automatically. Ctrl + C to stop. Default: `pwd`" @@ -90,6 +91,7 @@ def watch(input = nil) Watcher.new(opts).watch rescue Fontcustom::Error => e say_status :error, e.message, :red + exit 1 end desc "config [DIR]", "Generates a starter configuration file (fontcustom.yml) in DIR. Default: `pwd`"