Permalink
Browse files

Catch LoadError when try to load coolline.

  • Loading branch information...
1 parent ef14e66 commit 7df60ff89d843dc78aa193d93b022889a5bf05e8 @netzpirat netzpirat committed Jun 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/guard/interactors/coolline.rb
@@ -26,11 +26,11 @@ def self.available?(silent = false)
false
end
- rescue
+ rescue LoadError => e
::Guard::UI.error "Please add \"gem 'coolline'\" to your Gemfile and run Guard with \"bundle exec\"." unless silent
false
end
-
+
# Read a line from stdin with Readline.
#
def read_line
@@ -57,6 +57,6 @@ def read_line
def prompt
::Guard.listener.paused? ? 'p> ' : '>> '
end
-
+
end
end

0 comments on commit 7df60ff

Please sign in to comment.