1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Sass] Give a better error message when unable to load FSSM.

This commit is contained in:
Nathan Weizenbaum 2010-01-16 15:42:47 -08:00
parent d9b34bd2e4
commit 899285eaea

View file

@ -95,7 +95,18 @@ module Sass
def watch(individual_files = [])
update_stylesheets(individual_files)
require 'fssm'
begin
require 'fssm'
rescue LoadError => e
e.message << "\n" <<
if File.exists?(scope(".git"))
'Run "git submodule update --init" to get the recommended version.'
else
'Run "gem install fssm" to get it.'
end
raise e
end
FSSM.monitor do |mod|
template_locations.zip(css_locations).each do |template_location, css_location|
mod.path template_location do |path|