Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better exception handling

This shows the backtrace when there is a problem with a watch action, makes for easier watch debugging
  • Loading branch information...
commit 673fa0eebcd721d4f48cf0d1e80acf79c6c7ef29 1 parent 8c5be45
@capotej capotej authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/guard/watcher.rb
View
4 lib/guard/watcher.rb
@@ -53,8 +53,8 @@ def match_file?(file)
def call_action(matches)
begin
@action.arity > 0 ? @action.call(matches) : @action.call
- rescue
- UI.error "Problem with watch action!"
+ rescue Exception => e
+ UI.error "Problem with watch action!\n#{e.message}\n\n#{e.backtrace}"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.