From nobody Mon Oct 07 17:05:35 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XMlsD2P4Jz5YRXS; Mon, 07 Oct 2024 17:05:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XMlsD0qb7z4fTg; Mon, 7 Oct 2024 17:05:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728320736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uTaRIZKQgWpV7cUAP+32I0qTmxMcg7JSsPBg1s8nDuo=; b=Y17UywYnut9txgBAxnne0iKW/FKLkbUv4Xe0b6Y4adKX2XFYh3iJL8aSk/EBwJ0HE7qB7G mnnM6jPKEwIqhgYWrk7pf4dmD7/W7bSs0nl1ftK0eMzBLKgc39HBv7VgRAOlyKy70nFUOK yQECMl69N4HRj+NNWHASPwtkQMx0YH2pEtITBdVWdAwTYqJlXGX+cREfvoiEn4efWkyat0 a96ldXSEb94s5/5lt65yjQ8BjdZzXJ6N9NUVhniJf8vos5CqTOIU50k6rGPTkbAdmBJAQX kUoJ8RTiklk0LrvDCLWpOx7GIAFQr4aS3uPTnBNut5iGpX3WeKPZMx+Ps/pXrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728320736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uTaRIZKQgWpV7cUAP+32I0qTmxMcg7JSsPBg1s8nDuo=; b=IZF4RNZQLTq/wGSTgN/TgAbX4qgk7nqPrg8u+a91YndahafqgKOkDzesC/JO2vXvEv0Px8 J8D1UidT9Sj7Mj/R+m36Oo+JOGuwXbaw1WpsrNiqms1dxFuySZglqKkmFvaVitWvTLMDuk ExmnBnKv8F38CNpiQph6Vd1Fbs7eh/t/tMgDSFQ6y+4Ta4it0D2KIDMKWv8XaWiaSDcKrM WpCdT5Z4wqbtOFlmhkLajNNMFlZN/5xZYWxYgUctTk8iWP/qJHJR/YfSHgp1RN7ZbY7jre oSyDXcLkEgo/NjRiwCw8Y2YEvKlhNo5GRu05qCdEKkTm68dOf3Jxg8p2Bw6gHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728320736; a=rsa-sha256; cv=none; b=EO4o15OzPvLO7pmDCLEKo4w92bo3LtdB+Ykk1E2HErKW1d238xqLlVYbLFjIqP/fBt4c5d d2Acch1tlXhcYwCbUzqme9++CoE5pvJxjYNZB/9esqteKjGZrV9EP1YCYx7ItiQttq0JW3 b5nS5w27k9ad7RWcqvsWZZs2x0RjftXnCFD4jPGcuyUGWu18XH89+MTfXHqUkU9IngeuDe TARwgks4FYraE8f3MJurSvlEXP0edJhUyADr0byQfQH46X08ucdez8Jvf8gxCDsFTQrGWA 8+C0VQHFnqImCwLTibjecsWIcoHMi01ilZnQBlfBQ1KGftmokztpo6Mw9FhhCA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XMlsD0Pz9zvSR; Mon, 7 Oct 2024 17:05:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 497H5Zu4020715; Mon, 7 Oct 2024 17:05:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 497H5Z9T020712; Mon, 7 Oct 2024 17:05:35 GMT (envelope-from git) Date: Mon, 7 Oct 2024 17:05:35 GMT Message-Id: <202410071705.497H5Z9T020712@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: be9243409d6b - main - pkg: improve error message List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: be9243409d6be99f5d7815b6d074a85a6e84f7ce Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=be9243409d6be99f5d7815b6d074a85a6e84f7ce commit be9243409d6be99f5d7815b6d074a85a6e84f7ce Author: Ed Maste AuthorDate: 2024-10-07 16:33:12 +0000 Commit: Ed Maste CommitDate: 2024-10-07 17:05:07 +0000 pkg: improve error message Print the complete list of url that have failed PR: 281924 Co-authored-by: Baptiste Daroussin Differential Revision: https://reviews.freebsd.org/D46983 --- usr.sbin/pkg/pkg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c index cc23ffb8c257..6138ca37e439 100644 --- a/usr.sbin/pkg/pkg.c +++ b/usr.sbin/pkg/pkg.c @@ -855,7 +855,11 @@ bootstrap_pkg(bool force, const char *fetchOpts) goto cleanup; fetchfail: - warnx("Error fetching %s: %s", url, fetchLastErrString); + for (int j = 0; bootstrap_names[j] != NULL; j++) { + warnx("Attempted to fetch %s/Latest/%s", packagesite, + bootstrap_names[j]); + } + warnx("Error: %s", fetchLastErrString); if (fetchLastErrCode == FETCH_RESOLV) { fprintf(stderr, "Address resolution failed for %s.\n", packagesite); fprintf(stderr, "Consider changing PACKAGESITE.\n");