You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2015/07/16 05:42:12 UTC

svn commit: r1691310 - /poi/trunk/src/java/org/apache/poi/hssf/record/RecordInputStream.java

Author: centic
Date: Thu Jul 16 03:42:11 2015
New Revision: 1691310

URL: http://svn.apache.org/r1691310
Log:
Report which actual record a failing sid represents

Modified:
    poi/trunk/src/java/org/apache/poi/hssf/record/RecordInputStream.java

Modified: poi/trunk/src/java/org/apache/poi/hssf/record/RecordInputStream.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/record/RecordInputStream.java?rev=1691310&r1=1691309&r2=1691310&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/record/RecordInputStream.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/record/RecordInputStream.java Thu Jul 16 03:42:11 2015
@@ -52,7 +52,8 @@ public final class RecordInputStream imp
 	public static final class LeftoverDataException extends RuntimeException {
 		public LeftoverDataException(int sid, int remainingByteCount) {
 			super("Initialisation of record 0x" + Integer.toHexString(sid).toUpperCase()
-					+ " left " + remainingByteCount + " bytes remaining still to be read.");
+					+ "(" + RecordFactory.getRecordClass(sid).getSimpleName() + ") left " + remainingByteCount 
+					+ " bytes remaining still to be read.");
 		}
 	}
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org