Fix URL's in extension errors accessing remote data

The base URL was used when reporting errors accessing a URL,
use the full URL being accessed instead since anything else
is misleading, the full URL is needed to troubleshoot issues.
This commit is contained in:
Campbell Barton
2025-07-03 08:20:44 +00:00
parent eeb2dc8a9e
commit e0d2a0bc1a

View File

@@ -3043,7 +3043,7 @@ def repo_sync_from_remote(
del read_total
del retrieve_info
except (Exception, KeyboardInterrupt) as ex:
msg = url_retrieve_exception_as_message(ex, prefix="sync", url=remote_url)
msg = url_retrieve_exception_as_message(ex, prefix="sync", url=remote_json_url)
if demote_connection_errors_to_status and url_retrieve_exception_is_connectivity(ex):
msglog.status(msg)
else:
@@ -3953,7 +3953,7 @@ class subcmd_client:
result.write(block)
except (Exception, KeyboardInterrupt) as ex:
msg = url_retrieve_exception_as_message(ex, prefix="list", url=remote_url)
msg = url_retrieve_exception_as_message(ex, prefix="list", url=remote_json_url)
if demote_connection_errors_to_status and url_retrieve_exception_is_connectivity(ex):
msglog.status(msg)
else:
@@ -4420,7 +4420,7 @@ class subcmd_client:
# Unlike querying information which might reasonably be skipped.
msglog.fatal_error(
url_retrieve_exception_as_message(
ex, prefix="install", url=remote_url))
ex, prefix="install", url=filepath_remote_archive))
return False
if request_exit: