core: Ui color should be red on errors, yellow on warnings

This commit is contained in:
Mitchell Hashimoto 2014-01-17 20:41:17 -08:00
parent 1b8f1a3864
commit ac2ca2537d
1 changed files with 4 additions and 0 deletions

View File

@ -285,6 +285,10 @@ module Vagrant
opts = @opts.merge(opts)
return message if !opts.has_key?(:color)
# Special case some colors for certain message types
opts[:color] = :red if type == :error
opts[:color] = :yellow if type == :warn
# If it is a detail, it is not bold. Every other message type
# is bolded.
bold = type != :detail