We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 336e3cd commit 4333da9Copy full SHA for 4333da9
thirdparty/gatb-core-stripped/src/gatb/bank/impl/BankFastaZstd.cpp
@@ -455,8 +455,15 @@ inline bool rebuffer (buffered_file_t *bf)
455
{
456
if (bf->eof) return false;
457
bf->buffer_start = 0;
458
- bf->stream->read(reinterpret_cast<char*>(bf->buffer), BUFFER_SIZE);
459
- bf->buffer_end = bf->stream->gcount();
+
+ try {
460
+ bf->stream->read(reinterpret_cast<char*>(bf->buffer), BUFFER_SIZE);
461
+ bf->buffer_end = bf->stream->gcount();
462
+ } catch (const bxz::zstdException& ex) {
463
+ bf->buffer_end = 0;
464
+ std::cerr << bf->path << " " << ex.what() << std::endl;
465
+ }
466
467
if (bf->buffer_end < BUFFER_SIZE) bf->eof = 1;
468
if (bf->buffer_end == 0) return false;
469
return true;
0 commit comments