Skip to content

Commit

Permalink
Provide a more descriptive error message
Browse files Browse the repository at this point in the history
closes #6771
  • Loading branch information
lubosmj committed Jun 19, 2020
1 parent 304286c commit d7163c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/6771.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added a more descriptive error message that is shown when CONTENT_ORIGIN is not properly configured
8 changes: 7 additions & 1 deletion pulpcore/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,10 @@
try:
CONTENT_ORIGIN
except NameError:
raise ImproperlyConfigured(_("You must specify the CONTENT_ORIGIN setting."))
raise ImproperlyConfigured(
_(
"CONTENT_ORIGIN is a required setting but it was not configured. This may be caused "
"by invalid read permissions of the settings file. Note that CONTENT_ORIGIN is set by "
"the installer automatically."
)
)

0 comments on commit d7163c3

Please sign in to comment.