Include detailed error message from zlib after a decompression error.

This commit is contained in:
Tim Kientzle 2005-03-13 01:48:33 +00:00
parent 666cdfecc9
commit ceecd8dc63
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143478

View file

@ -512,6 +512,9 @@ drive_decompressor(struct archive *a, struct private_data *state)
return (ARCHIVE_OK);
default:
/* Any other return value is an error. */
archive_set_error(a, ARCHIVE_ERRNO_MISC,
"gzip decompression failed (%s)",
state->stream.msg);
goto fatal;
}
}