Skip to content

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: #2667
#2667
(cherry picked from commit 85f9af5)
  • Loading branch information
pavelpicka authored and patchback[bot] committed Jul 29, 2022
1 parent fd9a03a commit 168615d
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 @@ -292,7 +292,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 168615d

Please sign in to comment.