mirror of
https://github.com/MarekWojt/gertdns.git
synced 2025-12-13 20:29:51 +01:00
Don't panic! Propagate error
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user