Skip to content

Commit

Permalink
Make inline warnings yellow too.
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Jul 3, 2018
1 parent 3e5669e commit a7029b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/language_pack/shell_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,10 @@ def puts(message)

def warn(message, options = {})
if options.key?(:inline) ? options[:inline] : false
Kernel.puts "###### WARNING:"
Kernel.puts "\e[1m\e[33m" # Bold yellow
Kernel.puts "###### WARNING:\n"
puts message
Kernel.puts ""
Kernel.puts "\e[0m"
end
warnings << message
end
Expand Down

0 comments on commit a7029b1

Please sign in to comment.