diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-12-13 18:58:34 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-12-13 19:05:26 +0100 |
commit | e6bd88878e8fc08652b77f0444adcd74321dc6b6 (patch) | |
tree | 0acf81c02df491ed0ebf4f5f529c9b1097f6e36c /src/libutil/compression.cc | |
parent | ca87707c90c05289d0c7c1015f5750f6dd93708b (diff) |
Improve gzip error message
Diffstat (limited to 'src/libutil/compression.cc')
-rw-r--r-- | src/libutil/compression.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/compression.cc b/src/libutil/compression.cc index 17b506d5d..860b04adb 100644 --- a/src/libutil/compression.cc +++ b/src/libutil/compression.cc @@ -90,8 +90,8 @@ struct GzipDecompressionSink : CompressionSink int ret = inflate(&strm,Z_SYNC_FLUSH); 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; |