fix: some errorhandling corrections
chore: updated versions
This commit is contained in:
parent
7ff3af5044
commit
aa77ad77e2
10 changed files with 71 additions and 29 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue