Author: gert
Date: 2008-01-23 15:15:12 -0500 (Wed, 23 Jan 2008)
New Revision: 93706
Modified:
trunk/gert/build/common/Assert.cs
Log:
Improve error message.
Modified: trunk/gert/build/common/Assert.cs
===================================================================
--- trunk/gert/build/common/Assert.cs 2008-01-23 20:13:38 UTC (rev 93705)
+++ trunk/gert/build/common/Assert.cs 2008-01-23 20:15:12 UTC (rev 93706)
@@ -10,7 +10,7 @@
if ((x == null || y == null) || !x.Equals (y))
throw new Exception (string.Format
(CultureInfo.InvariantCulture,
"Expected: {0}, but was: {1}. {2}",
- x, y, msg));
+ x == null ? "<null>" : x, y == null ? "<null>"
: y, msg));
}
public static void AreEqual (object x, object y, string msg)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches