mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Improve gzip error message
This commit is contained in:
parent
ca87707c90
commit
e6bd88878e
1 changed files with 2 additions and 2 deletions
|
@ -90,8 +90,8 @@ struct GzipDecompressionSink : CompressionSink
|
||||||
|
|
||||||
int ret = inflate(&strm,Z_SYNC_FLUSH);
|
int ret = inflate(&strm,Z_SYNC_FLUSH);
|
||||||
if (ret != Z_OK && ret != Z_STREAM_END)
|
if (ret != Z_OK && ret != Z_STREAM_END)
|
||||||
throw CompressionError("error while decompressing gzip file: %d: %d: %d",ret, len, strm.avail_in);
|
throw CompressionError("error while decompressing gzip file: %d (%d, %d)",
|
||||||
|
zError(ret), len, strm.avail_in);
|
||||||
|
|
||||||
finished = ret == Z_STREAM_END;
|
finished = ret == Z_STREAM_END;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue