lib/capcode/render/sass.rb in Capcode-0.8.7 vs lib/capcode/render/sass.rb in Capcode-0.8.8
- old
+ new
@@ -1,5 +1,9 @@
-require "sass"
+begin
+ require 'sass'
+rescue LoadError => e
+ raise MissingLibrary, "Sass could not be loaded (is it installed?): #{e.message}"
+end
module Capcode
module Helpers
# Set the path to Sass files. If this path is not set, Capcode will search in the static path.
# This method is deprecated and will be removed in version 1.0
\ No newline at end of file