Mercurial > jhg
diff src/org/tmatesoft/hg/internal/ByteArrayDataAccess.java @ 663:46b56864b483
Pull: phase2 - update phases from remote, fncache with added files. Tests
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 10 Jul 2013 16:41:49 +0200 |
parents | 55b7987c1796 |
children | 545b1d4cc11d |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/ByteArrayDataAccess.java Wed Jul 10 11:53:19 2013 +0200 +++ b/src/org/tmatesoft/hg/internal/ByteArrayDataAccess.java Wed Jul 10 16:41:49 2013 +0200 @@ -52,7 +52,7 @@ @Override public void readBytes(byte[] buf, int off, int len) throws IOException { if (len > (this.length - pos)) { - throw new IOException(); + throw new IOException(String.format("Requested %d bytes at position %d of %d total", len, pos, length)); } System.arraycopy(data, offset+pos, buf, off, len); pos += len;