diff --git a/lib/guard/watcher.rb b/lib/guard/watcher.rb index 074e7c2..56f5011 100644 --- a/lib/guard/watcher.rb +++ b/lib/guard/watcher.rb @@ -53,8 +53,8 @@ module Guard 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