Class: Compass::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/compass.rb

Instance Method Summary collapse

Instance Method Details

#handle_exception(sass_filename, css_filename, e) ⇒ Object

Raises:

  • (Sass::SyntaxError)


15
16
17
18
19
# File 'lib/guard/compass.rb', line 15

def handle_exception(sass_filename, css_filename, e)
  old_handle_exception(sass_filename, css_filename, e)
  # rethrow the exception, we need it to notificate the user!
  raise Sass::SyntaxError, "[#{File.basename(sass_filename)}:#{e.sass_line}] #{e.message}"
end

#old_handle_exceptionObject



14
# File 'lib/guard/compass.rb', line 14

alias :old_handle_exception :handle_exception