X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fresource.c;h=bb3dda97aca9099ae35727bc64905c961fd9ca62;hp=03d6e0c47d35aeaef0d3160b3be5115c8ec5c965;hb=3d84c998673ba7acf82ec5c26769a41e28a2cc7b;hpb=ac2f455531e39641bedca08ab510a8c1d09ba125 diff --git a/src/resource.c b/src/resource.c index 03d6e0c4..bb3dda97 100644 --- a/src/resource.c +++ b/src/resource.c @@ -400,6 +400,7 @@ read_compressed_resource(const struct wim_lookup_table_entry *lte, uncompressed_buf, uncompressed_chunk_size); if (ret) { + ERROR("Failed to decompress data."); ret = WIMLIB_ERR_DECOMPRESSION; errno = EINVAL; goto out_free_chunk_offsets; @@ -412,6 +413,7 @@ read_compressed_resource(const struct wim_lookup_table_entry *lte, out_p, uncompressed_chunk_size); if (ret) { + ERROR("Failed to decompress data."); ret = WIMLIB_ERR_DECOMPRESSION; errno = EINVAL; goto out_free_chunk_offsets; @@ -618,10 +620,11 @@ invalid: * * Return values: * WIMLIB_ERR_SUCCESS (0) - * WIMLIB_ERR_READ (errno set) - * WIMLIB_ERR_NOMEM (errno set to ENOMEM) - * WIMLIB_ERR_DECOMPRESSION (errno set to EINVAL) - * WIMLIB_ERR_INVALID_PIPABLE_WIM (errno set to EINVAL) + * WIMLIB_ERR_READ (errno set) + * WIMLIB_ERR_UNEXPECTED_END_OF_FILE (errno set to 0) + * WIMLIB_ERR_NOMEM (errno set to ENOMEM) + * WIMLIB_ERR_DECOMPRESSION (errno set to EINVAL) + * WIMLIB_ERR_INVALID_PIPABLE_WIM (errno set to EINVAL) * * or other error code returned by the @cb function. */