Skip to content

Commit

Permalink
Adress coderabbit suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-hbrhbr committed Dec 19, 2024
1 parent 09b73c7 commit 7cedb25
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ auto Compressor::close() -> void {
}

if (m_compression_stream.avail_in > 0) {
SPDLOG_ERROR("Tried to close LZMA compressor with unprocessed input data.");
throw OperationFailed(ErrorCode_Failure, __FILENAME__, __LINE__);
SPDLOG_WARN("Trying to close LZMA compressor with unprocessed input data. Processing and "
"flushing remaining data.");
flush_lzma(LZMA_FULL_FLUSH);
}

flush_lzma(LZMA_FINISH);
Expand Down

0 comments on commit 7cedb25

Please sign in to comment.