Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be more unix-y and fail when there's an error #295

Merged
merged 1 commit into from
Jun 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/fontcustom/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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`"
Expand All @@ -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`"
Expand Down