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

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;
}
}