Author: tilman
Date: Thu Sep 20 06:17:57 2018
New Revision: 1841426
URL: http://svn.apache.org/viewvc?rev=1841426&view=rev
Log:
PDFBOX-4312: improve error message
Modified:
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSStandardOutputStream.java
Modified:
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSStandardOutputStream.java
URL:
http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSStandardOutputStream.java?rev=1841426&r1=1841425&r2=1841426&view=diff
==============================================================================
---
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSStandardOutputStream.java
(original)
+++
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSStandardOutputStream.java
Thu Sep 20 06:17:57 2018
@@ -209,7 +209,7 @@ public class COSStandardOutputStream ext
private void checkPos() throws IOException
{
if(fileChannel!=null && fileChannel.position() != getPos())
- throw new IOException("OutputStream has an invalid position");
+ throw new IOException("OutputStream has an invalid position:
actual " + fileChannel.position() + " != expected " + getPos());
}
public byte[] getFileInBytes(int[] byteRange) throws IOException