lib/faastruby/cli.rb in faastruby-0.5.14 vs lib/faastruby/cli.rb in faastruby-0.5.15
- old
+ new
@@ -6,10 +6,10 @@
FAASTRUBY_YAML = 'faastruby.yml'
SPINNER_FORMAT = :spin_2
class CLI
def self.error(message, color: :red)
- message.each {|m| STDERR.puts m.colorize(color)} if message.is_a?(Array)
+ message.compact.each {|m| STDERR.puts m.colorize(color)} if message.is_a?(Array)
STDERR.puts message.colorize(color) if message.is_a?(String)
exit 1
end
def self.run(command, args)