vaultwarden/src
BlackDex e945d16fcf
Optimize config loading messages
As kinda discussed here #3090, the messages regarding loading the
configuration files is a bit strange or unclear. There have been some
other reports regarding this in the past, but wasn't that big a of a
deal.

But to make the whole process it bit more nice, this PR adjusts the way
it reports issues and some small changes to the messages to make it all
a bit more clear.

- Do not report a missing `.env` file, but only send a message when using one.
- Exit instead of Panic, a panic causes a stacktrace, which isn't needed
  here. I'm using a exit code 255 here so it is different to the other
  exit's we use.
- Exit on more issues, since if we continue, it could cause
  configuration issues if the user thinks all is fine.
- Use the actual env file used in the messages instead of `.env`.
- Added a **INFO** message when loading the `config.json`.
  This makes it consistent with the info message for loading the env file.

Resolves #3090
2023-01-09 18:25:36 +01:00
..
api Update WebSocket Notifications 2023-01-09 18:25:36 +01:00
db Disable groups by default and Some optimizations 2022-12-18 20:32:06 +01:00
static Removed unsafe-inline JS from CSP and other fixes 2023-01-09 18:25:35 +01:00
auth.rs Fix recover-2fa not working. 2022-12-18 20:32:06 +01:00
config.rs Optimize config loading messages 2023-01-09 18:25:36 +01:00
crypto.rs Remove get_random_64() 2022-11-13 10:03:06 +01:00
error.rs Cleanups and Fixes for Emergency Access 2022-12-04 23:17:48 +01:00
mail.rs Percent-encode org_name in links 2023-01-03 12:51:44 +01:00
main.rs Remove ctrlc crate and some updates 2022-12-12 22:56:10 +01:00
ratelimit.rs Basic ratelimit for user login (including 2FA) and admin login 2021-12-22 21:48:49 +01:00
util.rs Removed unsafe-inline JS from CSP and other fixes 2023-01-09 18:25:35 +01:00