lib/spiderfw/templates/layout.rb in spiderfw-0.6.25 vs lib/spiderfw/templates/layout.rb in spiderfw-0.6.26.pre1

- old
+ new

@@ -268,12 +268,17 @@ end compiler = compiler_class.new(ass[:app].pub_path) compiler.compile(ass[:path], dest) rescue Exception if ext == '.less' - Spider.logger.error("Unable to compile LESS. Please ensure you have a JS backend - (see https://github.com/sstephenson/execjs)") - else + msg = "Unable to compile LESS file #{ass[:path]}." + msg += "Please ensure you have a JS backend (see https://github.com/sstephenson/execjs)" + elsif ext == '.scss' || ext == '.sass' + msg = "Unable to compile SASS file #{ass[:path]}." + msg += "Please ensure that you have the 'sass' (and optionally 'compass') gems installed." + end + Spider.logger.error(msg) + unless File.exist?(dest) raise end end end ass[:path] = dest