Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
extraction: improve error message
Baptiste Daroussin committed 4 years ago
commit 9b921a7f2515ac7820ef049b8519d895b22bb459
parent 2087860
1 file changed +2 -2
modified libpkg/pkg_repo.c
@@ -274,7 +274,7 @@ pkg_repo_meta_extract_signature_pubkey(int fd, void *ud)
		}
		else if (strcmp(archive_entry_pathname(ae), cb->fname) == 0) {
			if (archive_read_data_into_fd(a, cb->tfd) != 0) {
-
				pkg_emit_errno("archive_read_extract", "extract error");
+
				pkg_emit_error("Error extracting the archive: '%s'", archive_error_string(a));
				rc = EPKG_FATAL;
				break;
			}
@@ -386,7 +386,7 @@ pkg_repo_meta_extract_signature_fingerprints(int fd, void *ud)
		else {
			if (strcmp(archive_entry_pathname(ae), cb->fname) == 0) {
				if (archive_read_data_into_fd(a, cb->tfd) != 0) {
-
					pkg_emit_errno("archive_read_extract", "extract error");
+
					pkg_emit_error("Error extracting the archive: '%s'", archive_error_string(a));
					rc = EPKG_FATAL;
					break;
				}