Author: igorz
Date: 2008-01-30 09:57:10 -0500 (Wed, 30 Jan 2008)
New Revision: 94382

Modified:
   
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs
Log:
fix exception propagation

Modified: 
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs
===================================================================
--- 
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs
   2008-01-30 14:54:50 UTC (rev 94381)
+++ 
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs
   2008-01-30 14:57:10 UTC (rev 94382)
@@ -321,8 +321,8 @@
                                } catch (ConfigurationException) {
                                        throw;
                                } catch (Exception ex) {
-                                       string msg = String.Format ("The value 
of the property '{0}' cannot be parsed.", prop.Name);
-                                       throw new ConfigurationErrorsException 
(msg, ex, reader);
+                                       string msg = String.Format ("The value 
for the property '{0}' is not valid. The error is: {1}", prop.Name, ex.Message);
+                                       throw new ConfigurationErrorsException 
(msg, reader);
                                }
                                readProps [prop] = prop.Name;
                        }

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

Reply via email to