From 0a7ca24c26d57d532df614bdfe78b8b5c228e90d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 22 Mar 2017 11:53:33 +0100 Subject: Fix xz decompression Fixes #1285. --- src/libutil/compression.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/libutil/compression.cc b/src/libutil/compression.cc index f913d0f5badd..b0b1d709fa44 100644 --- a/src/libutil/compression.cc +++ b/src/libutil/compression.cc @@ -48,10 +48,7 @@ static ref decompressXZ(const std::string & in) return res; if (ret != LZMA_OK) - throw CompressionError("error while decompressing xz file"); - - if (strm.avail_in == 0) - throw CompressionError("xz data ends prematurely"); + throw CompressionError("error %d while decompressing xz file", ret); } } -- cgit 1.4.1