Permalink
Browse files

Fix invalid_file_exception.what() when the block size is wrong

  • Loading branch information...
1 parent f51b069 commit 0e8b3d00b2fbb5b96ab8136859ee50836bba3ba7 @Mortal Mortal committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tpie/file_accessor/stream_accessor.inl
@@ -107,7 +107,7 @@ void stream_accessor<file_accessor_t>::validate_header(const stream_header_t & h
throw invalid_file_exception("Invalid file, item size is wrong");
if (header.blockSize != m_blockSize)
- throw invalid_file_exception("Invalid file, item size is wrong");
+ throw invalid_file_exception("Invalid file, block size is wrong");
if (header.userDataSize > header.maxUserDataSize)
throw invalid_file_exception("Invalid file, user data size is greater than max user data size");

0 comments on commit 0e8b3d0

Please sign in to comment.