Added more documentation and changed param names

This commit is contained in:
David Allen 2024-07-22 14:22:02 -06:00
parent c537e496da
commit eba9dfa1e7
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
5 changed files with 46 additions and 59 deletions

View file

@ -21,7 +21,7 @@ func LoadConfig(path string) error {
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
return fmt.Errorf("config file not found: %w", err)
} else {
return fmt.Errorf("failed toload config file: %w", err)
return fmt.Errorf("failed to load config file: %w", err)
}
}