mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Colorized error for haml.rb
This commit is contained in:
parent
628e0a7471
commit
5012652fb2
@ -1,3 +1,5 @@
|
||||
require File.expand_path('../../lib/colors.rb', __FILE__)
|
||||
|
||||
module Jekyll
|
||||
require 'haml'
|
||||
class HamlConverter < Converter
|
||||
@ -17,7 +19,7 @@ module Jekyll
|
||||
engine = Haml::Engine.new(content)
|
||||
engine.render
|
||||
rescue StandardError => e
|
||||
puts "!!! HAML Error: " + e.message
|
||||
$stderr.puts ("!!! HAML Error: " + e.message).red
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user