* XmlSerializationWriter.cs : more helpful error message.
svn path=/trunk/mcs/; revision=107645
+2008-07-10 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlSerializationWriter.cs : more helpful error message.
+
2008-07-09 Atsushi Enomoto <atsushi@ximian.com>
* MapCodeGenerator.cs : use explicit element name for explicitly added
string value;
TypeData td = TypeTranslator.GetTypeData (o.GetType ());
if (td.SchemaType != SchemaTypes.Primitive)
- throw new InvalidOperationException ("The type of the argument object is not primitive.");
+ throw new InvalidOperationException (String.Format ("The type of the argument object '{0}' is not primitive.", td.FullTypeName));
if (name == null) {
ns = td.IsXsdType ? XmlSchema.Namespace : XmlSerializer.WsdlTypesNamespace;