fix: some errorhandling corrections

chore: updated versions
This commit is contained in:
Marcel S. Henselin 2026-05-13 08:37:55 +02:00
parent 7ff3af5044
commit aa77ad77e2
10 changed files with 71 additions and 29 deletions

View file

@ -45,7 +45,10 @@ func FatalLog(format string, args ...interface{}) {
func ValidateConfig(
cfg Config,
) Config {
defaults.Set(&cfg)
err := defaults.Set(&cfg)
if err != nil {
FatalLog("unable to set defaults")
}
if cfg.VaultAddr == "" {
FatalLog("VAULT_ADDR cannot be empty")