From e6bd88878e8fc08652b77f0444adcd74321dc6b6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 13 Dec 2019 18:58:34 +0100 Subject: [PATCH] Improve gzip error message --- src/libutil/compression.cc | 4 ++-- 1 file 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;