Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #7 from bradphelan/master

guard-compass no longer crashes on sass syntax failure but displays Growl Notification
  • Loading branch information...
commit 9669184a5484ec221ae819eb723aed435af85ad4 2 parents 9b8fd6e + f8be061
Olivier Amblet authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 lib/guard/compass.rb
View
11 lib/guard/compass.rb
@@ -103,7 +103,16 @@ def cleanup_options
def perform
if valid_sass_path?
- @updater.execute
+ begin
+ @updater.execute
+ rescue Sass::SyntaxError => e
+ msg = "#{e.sass_backtrace_str}"
+ ::Guard::Notifier.notify msg, :title => "Guard Compass", :image => :failed
+ return false
+ rescue Exception => e
+ ::Guard::Notifier.notify e.to_s, :title => "Guard Compass", :image => :failed
+ return false
+ end
true
else
false
Please sign in to comment.
Something went wrong with that request. Please try again.