Skip to content

Commit

Permalink
fix: check error for validateSettings during config load
Browse files Browse the repository at this point in the history
  • Loading branch information
tphakala committed Jun 1, 2024
1 parent 25a4453 commit 15f6d48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ func Load() (*Settings, error) {
}

// Validate settings
validateSettings(settings)
if err := validateSettings(settings); err != nil {
return nil, fmt.Errorf("error validating settings: %w", err)
}

// Save settings instance
settingsInstance = settings
Expand Down

0 comments on commit 15f6d48

Please sign in to comment.