Skip to content

Commit

Permalink
Fix xz decompression
Browse files Browse the repository at this point in the history
Fixes #1285.
  • Loading branch information
edolstra committed Mar 22, 2017
1 parent 895a74a commit 0a7ca24
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/libutil/compression.cc
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 0a7ca24

Please sign in to comment.