Don't panic! Propagate error

This commit is contained in:
daru
2021-10-17 13:49:56 +02:00
parent 1d7dcbe3ba
commit 290a9af7f1
3 changed files with 14 additions and 10 deletions

View File

@@ -16,6 +16,7 @@ var (
}
)
func Load(configFilePath string) {
Config = loadConfFile(configFilePath)
func Load(configFilePath string) (*Configuration, error) {
Config, err := loadConfFile(configFilePath)
return &Config, err
}