Skip to content

Commit

Permalink
Raise an error instead of warning, sidekiq#2149
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jan 23, 2015
1 parent a7ddb44 commit abe31e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/extensions/action_mailer.rb
Expand Up @@ -20,7 +20,7 @@ def perform(yml)
if msg
deliver(msg)
else
logger.warn("#{target.name}##{method_name} returned an undeliverable mail object")
raise "#{target.name}##{method_name} returned an undeliverable mail object"
end
end

Expand Down

0 comments on commit abe31e2

Please sign in to comment.