Closed Caellian closed 3 years ago
Right, LMK which error gets thrown when output buffer is too small (or whether that happens at all), that one needs to change to ErrorKind::WriteZero
Seems reasonable to me, thanks! I think this needs rustfmt from CI but otherwise seems good to go.
Thanks!
This helps with fallbacks (don't decompress, return compressed) and allows better error recovery for programs using xz2.
I'm not 100% sure if all
ErrorKind
s are appropriate as I have never worked with liblzma. Let me know if some changes need to be made.I also added more descriptive error display strings so that crashes give more insight into why they happened.