Include the problematic time zone in the exception message when throwing a TimeZoneNo...
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Wed, 25 Mar 2015 12:32:30 +0000 (13:32 +0100)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Fri, 24 Apr 2015 10:53:25 +0000 (12:53 +0200)
mcs/class/corlib/System/TimeZoneInfo.MonoTouch.cs

index fa727cce0c6da443dedf1a24efc0693ee3219747..fef235786947d13e8cc9c9eb1f2e127afd05b53e 100644 (file)
@@ -70,7 +70,7 @@ namespace System {
                        IntPtr data = monotouch_timezone_get_data (name, ref size);
                        if (size <= 0) {
                                if (throw_on_error)
-                                       throw new TimeZoneNotFoundException ();
+                                       throw new TimeZoneNotFoundException (name);
                                return null;
                        }