From d7163c32f4256aa2830d09b21961be14d2e3c336 Mon Sep 17 00:00:00 2001 From: Lubos Mjachky Date: Tue, 26 May 2020 19:28:15 +0200 Subject: [PATCH] Provide a more descriptive error message closes #6771 --- CHANGES/6771.bugfix | 1 + pulpcore/app/settings.py | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 CHANGES/6771.bugfix diff --git a/CHANGES/6771.bugfix b/CHANGES/6771.bugfix new file mode 100644 index 0000000000..bc7e3185d6 --- /dev/null +++ b/CHANGES/6771.bugfix @@ -0,0 +1 @@ +Added a more descriptive error message that is shown when CONTENT_ORIGIN is not properly configured diff --git a/pulpcore/app/settings.py b/pulpcore/app/settings.py index 183399f18c..5d6b494d0e 100644 --- a/pulpcore/app/settings.py +++ b/pulpcore/app/settings.py @@ -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." + ) + )