Fix xz decompression

Fixes #1285.
This commit is contained in:
Eelco Dolstra 2017-03-22 11:53:33 +01:00
parent 895a74a814
commit 0a7ca24c26
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -48,10 +48,7 @@ static ref<std::string> 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);
}
}