Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Improved error message for ACS
Browse files Browse the repository at this point in the history
Improved error message for Alternate Content Source refresh when it has
insufficient permissions.

closes: pulp#2667
pulp#2667
  • Loading branch information
pavelpicka committed Jul 28, 2022
1 parent a62aaf1 commit a742a59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/2667.bugfix
@@ -0,0 +1 @@
Improved error message for Alternate Content Source refresh when it has insufficient permissions.
5 changes: 4 additions & 1 deletion pulp_rpm/app/tasks/synchronizing.py
Expand Up @@ -294,7 +294,10 @@ def normalize_url(url_to_normalize):
# which doesn't support mirror lists.
if custom_url:
raise ValueError(
_("Remote URL {} for Alternate Content Source is invalid").format(custom_url)
_(
"ACS remote for url '{}' raised an error '{} {}'. "
"Please check your ACS remote configuration."
).format(custom_url, exc.status, exc.message)
)
log.info(
_("Attempting to resolve a true url from potential mirrolist url '{}'").format(url)
Expand Down

0 comments on commit a742a59

Please sign in to comment.