diff options
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r-- | lib/net/smtp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index c96caae3d8..52ea003771 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -839,7 +839,7 @@ module Net ok_users << addr end end - raise ArgumentError, 'mail destination not given' if ok_addrs.empty? + raise ArgumentError, 'mail destination not given' if ok_users.empty? ret = yield unless unknown_users.empty? raise SMTPAuthenticationError, "failed to deliver for #{unknown_users.join(', ')}" |