mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 16:10:55 +00:00
Include detailed error message from zlib after a decompression error.
This commit is contained in:
parent
666cdfecc9
commit
ceecd8dc63
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143478
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue