From ac2ca2537dbf3a71300434b1358d10da677d0689 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 17 Jan 2014 20:41:17 -0800 Subject: [PATCH] core: Ui color should be red on errors, yellow on warnings --- lib/vagrant/ui.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/vagrant/ui.rb b/lib/vagrant/ui.rb index 6f22bde70..2796720b0 100644 --- a/lib/vagrant/ui.rb +++ b/lib/vagrant/ui.rb @@ -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