From a2a783dda1ecb99ebb44cf883473a1e0330d2b67 Mon Sep 17 00:00:00 2001 From: Janaka Abeywardhana Date: Sat, 28 Oct 2023 17:41:28 +0100 Subject: [PATCH] chore: improve error message to help with infra ops --- web/utils/layout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/utils/layout.py b/web/utils/layout.py index 4d4acae3..20b7e9e7 100644 --- a/web/utils/layout.py +++ b/web/utils/layout.py @@ -1120,8 +1120,8 @@ def signup_ui() -> None: st.markdown('Already have an account? Login here.', unsafe_allow_html=True) if not handle_check_mailer_ready(): - log.error("Mailer not available. User self signup disabled.") - st.error("Unable to create personal accounts") + log.error("Mailer service not available due to a config problem. User self signup disabled. All the following env vars needs to be set: DOCQ_SMTP_SERVER, DOCQ_SMTP_PORT, DOCQ_SMTP_LOGIN, DOCQ_SMTP_KEY, DOCQ_SMTP_FROM, DOCQ_SERVER_ADDRESS. Refer to he `misc/secrets.toml.template` in the repo for details.") + st.error("Unable to create personal accounts.") st.info("Please contact your administrator to help you create an account.") st.stop()