Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2010-01-21 18:21:27 +0300
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2010-01-21 18:21:27 +0300
commit91a420aa6b873c177673870264361f8b3b719823 (patch)
tree8b1b67567b810a044aa84c53d44dfa731f1806c6 /mcs
parent1cc8e885d5bbfb708e4fd9da2256bf546d695f27 (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/ChangeLog6
-rw-r--r--mcs/class/System/System.Net.Mail/SmtpClient.cs1
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;