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:
parent
d9b34bd2e4
commit
899285eaea
1 changed files with 12 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue