Author: andrews
Date: 2006-09-17 06:33:17 -0400 (Sun, 17 Sep 2006)
New Revision: 65525

Modified:
   trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyHost.jvm.cs
Log:
output WebException response stream

Modified: 
trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyHost.jvm.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyHost.jvm.cs    
2006-09-17 10:32:07 UTC (rev 65524)
+++ trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyHost.jvm.cs    
2006-09-17 10:33:17 UTC (rev 65525)
@@ -83,7 +83,9 @@
                                t.Response = t.Request.ExtractResponse 
(response);
                        }
                        catch (WebException we) {
-                               throw;//place for a breakpoint
+                               StreamReader sr = new StreamReader 
(we.Response.GetResponseStream ());
+                               throw new WebException (we.Message + 
Environment.NewLine
+                                       + "Response:" + Environment.NewLine + 
sr.ReadToEnd (), we);
                        }
                        finally {
                                if (response != null)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to