diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2010-01-21 18:21:27 +0300 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2010-01-21 18:21:27 +0300 |
commit | 91a420aa6b873c177673870264361f8b3b719823 (patch) | |
tree | 8b1b67567b810a044aa84c53d44dfa731f1806c6 /mcs | |
parent | 1cc8e885d5bbfb708e4fd9da2256bf546d695f27 (diff) |
2010-01-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
* SmtpClient.cs: rethrow inner exception so that
AsyncCompletedEventArgs.Error gets the right value on error. Patch
by Dimitar Dobrev.
svn path=/trunk/mcs/; revision=149983
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System/System.Net.Mail/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/System/System.Net.Mail/SmtpClient.cs | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/mcs/class/System/System.Net.Mail/ChangeLog b/mcs/class/System/System.Net.Mail/ChangeLog index 50a1166f18b..349ef022213 100644 --- a/mcs/class/System/System.Net.Mail/ChangeLog +++ b/mcs/class/System/System.Net.Mail/ChangeLog @@ -1,3 +1,9 @@ +2010-01-21 Gonzalo Paniagua Javier <gonzalo@novell.com> + + * SmtpClient.cs: rethrow inner exception so that + AsyncCompletedEventArgs.Error gets the right value on error. Patch + by Dimitar Dobrev. + 2009-12-11 Miguel de Icaza <miguel@novell.com> * SmtpClient.cs: Add half-implemented feature, TargetName for the diff --git a/mcs/class/System/System.Net.Mail/SmtpClient.cs b/mcs/class/System/System.Net.Mail/SmtpClient.cs index b1883cb5ac5..012884823c2 100644 --- a/mcs/class/System/System.Net.Mail/SmtpClient.cs +++ b/mcs/class/System/System.Net.Mail/SmtpClient.cs @@ -764,6 +764,7 @@ namespace System.Net.Mail { Send (message); } catch (Exception ex) { ea.Result = ex; + throw ex; } }; worker.WorkerSupportsCancellation = true; |