Be quiet about missing extras when middleman-core is used alone

This commit is contained in:
Ben Hollis 2014-02-25 22:28:06 -08:00
parent 4e545eef27
commit 0533bc4209
2 changed files with 5 additions and 2 deletions

View file

@ -35,7 +35,6 @@ require 'middleman-more/core_extensions/i18n'
begin
require 'middleman-more/core_extensions/compass'
rescue LoadError
$stderr.puts "Compass not installed: #{$!}"
end
###

View file

@ -49,7 +49,11 @@ module Middleman
::Tilt.prefer(markdown_engine_klass, *markdown_exts)
end
rescue LoadError
logger.warn "Requested Markdown engine (#{config[:markdown_engine]}) not found. Maybe the gem needs to be installed and required?"
# If they just left it at the default engine and don't happen to have it,
# then they're using middleman-core bare and we shouldn't bother them.
if config.setting(:markdown_engine).value_set?
logger.warn "Requested Markdown engine (#{config[:markdown_engine]}) not found. Maybe the gem needs to be installed and required?"
end
end
end
end