Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Better report error messages when extraction failed
Baptiste Daroussin committed 10 years ago
commit dc802ca581c3415bf5c3ecb08e7beff02143cf60
parent 614c6a9
1 file changed +2 -2
modified libpkg/pkg_add.c
@@ -318,8 +318,8 @@ do_extract(struct archive *a, struct archive_entry *ae, const char *location,
			 */
			if (archive_entry_filetype(ae) != AE_IFDIR ||
			    !is_dir(pathname)) {
-
				pkg_emit_error("archive_read_extract(): %s",
-
				    archive_error_string(a));
+
				pkg_emit_error("archive_read_extract() errno %d: %s",
+
				    archive_errno(a), archive_error_string(a));
				retcode = EPKG_FATAL;
				goto cleanup;
			}