Error message formating.
authorMarek Safar <marek.safar@gmail.com>
Tue, 15 Dec 2009 09:39:13 +0000 (09:39 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 15 Dec 2009 09:39:13 +0000 (09:39 -0000)
svn path=/trunk/mcs/; revision=148448

mcs/mcs/expression.cs

index 820a363724f416e508aef5dda5f661a429815040..bda5cc2976d00415db316320263faad7b43d482d 100644 (file)
@@ -4253,14 +4253,12 @@ namespace Mono.CSharp {
                                Expression conv = Convert.ImplicitConversion (ec, true_expr, false_type, loc);
                                if (conv != null) {
                                        //
-                                       // Check if both can convert implicitl to each other's type
+                                       // Check if both can convert implicitly to each other's type
                                        //
                                        if (Convert.ImplicitConversion (ec, false_expr, true_type, loc) != null) {
                                                ec.Report.Error (172, loc,
-                                                          "Can not compute type of conditional expression " +
-                                                          "as `" + TypeManager.CSharpName (true_expr.Type) +
-                                                          "' and `" + TypeManager.CSharpName (false_expr.Type) +
-                                                          "' convert implicitly to each other");
+                                                       "Type of conditional expression cannot be determined as `{0}' and `{1}' convert implicitly to each other",
+                                                       TypeManager.CSharpName (true_type), TypeManager.CSharpName (false_type));
                                                return null;
                                        }
                                        type = false_type;