Skip to content

Commit

Permalink
Merge pull request #509 from jinzhu/fix_options_changed_after_pass_to…
Browse files Browse the repository at this point in the history
…_notifier

Fix options changed after pass it to any notifiers
  • Loading branch information
rymai committed Oct 23, 2013
2 parents 30d6486 + 0b2f761 commit 1cfaaa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/guard/notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def notify(message, opts = {})
notifier = _get_notifier_module(notifier[:name]).new(notifier[:options])

begin
notifier.notify(message, opts)
notifier.notify(message, opts.dup)
rescue Exception => e
::Guard::UI.error "Error sending notification with #{ notifier.name }: #{ e.message }"
::Guard::UI.debug e.backtrace.join("\n")
Expand Down

0 comments on commit 1cfaaa0

Please sign in to comment.