wainuiomata / sambal

Experimental web admin for Samba and Active Directory domains
https://wainuiomata.com
GNU General Public License v3.0
1 stars 1 forks source link

Better error messages if environment variables are missing #14

Closed robvdl closed 9 months ago

robvdl commented 9 months ago

For example, if the environment variable SAMBAL_SESSION_SECRET is missing, rather than exiting cleanly and just saying that, instead it spits out a traceback with a confusing message to the end user about requiring either "redis.sessions.secret" or "redis.sessions.cookie_signer".

We don't want to see that traceback or message from redis.sessions at all, we want to show our own error message saying the env var is missing instead.

All the other env vars need to be checked too, to see how the app behaves if they are not set.