Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
extraction: improve error message
Baptiste Daroussin committed 4 years ago
commit 9b921a7f2515ac7820ef049b8519d895b22bb459
parent 20878604437f652e9488ec27e2f7ceea707ecb96
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;
				}