Better exception handling
This shows the backtrace when there is a problem with a watch action, makes for easier watch debugging
This commit is contained in:
parent
8c5be4536b
commit
673fa0eebc
@ -53,8 +53,8 @@ module Guard
|
|||||||
def call_action(matches)
|
def call_action(matches)
|
||||||
begin
|
begin
|
||||||
@action.arity > 0 ? @action.call(matches) : @action.call
|
@action.arity > 0 ? @action.call(matches) : @action.call
|
||||||
rescue
|
rescue Exception => e
|
||||||
UI.error "Problem with watch action!"
|
UI.error "Problem with watch action!\n#{e.message}\n\n#{e.backtrace}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user