mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 20:12:44 +00:00
pkg: improve error message
Print the complete list of url that have failed PR: 281924 Co-authored-by: Baptiste Daroussin <bapt@FreeBSD.org> Differential Revision: https://reviews.freebsd.org/D46983
This commit is contained in:
parent
9a73b5b1e8
commit
be9243409d
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user