Browse Source

2009-12-22 Atsushi Enomoto <[email protected]>

	* XmlBinaryDictionaryReader.cs : slightly more descriptive errmsg.


svn path=/trunk/mcs/; revision=148832
Atsushi Eno 16 years ago
parent
commit
ef654ad856

+ 4 - 0
mcs/class/System.Runtime.Serialization/System.Xml/ChangeLog

@@ -1,3 +1,7 @@
+2009-12-22  Atsushi Enomoto  <[email protected]>
+
+	* XmlBinaryDictionaryReader.cs : slightly more descriptive errmsg.
+
 2009-12-01  Sebastien Pouliot  <[email protected]>
 
 	* XmlDictionaryReader.cs: Fix ReadValueAsBase64 return value and

+ 1 - 1
mcs/class/System.Runtime.Serialization/System.Xml/XmlBinaryDictionaryReader.cs

@@ -1091,7 +1091,7 @@ namespace System.Xml
 			case BF.Int32:
 				return (int) current.TypedValue;
 			}
-			throw new InvalidOperationException ("Current content is not an integer");
+			throw new InvalidOperationException (String.Format ("Current content is not an integer. (Internal value type:{0:X02})", (int) node.ValueType));
 		}
 
 		public override long ReadContentAsLong ()