Add more detailed error message for "Chunk overread" case.

svn-id: r40493
This commit is contained in:
Johannes Schickel 2009-05-12 15:06:20 +00:00
parent eb8ddbe8f4
commit 619d107ed7

View File

@ -162,7 +162,7 @@ public:
void incBytesRead(uint32 inc) {
bytesRead += inc;
if (bytesRead > size) {
error("Chunk overread");
error("Chunk '%s' overread", ID2string(id));
}
}