Update cfger.go
This commit is contained in:
parent
849910d35b
commit
6a860deb4e
1 changed files with 1 additions and 1 deletions
2
cfger.go
2
cfger.go
|
@ -94,7 +94,7 @@ func (cl *ConfigLoader) Get(key string) OptionalItem {
|
|||
func (cl *ConfigLoader) Required(key string) OptionalItem {
|
||||
opt := cl.Get(key)
|
||||
if !opt.found {
|
||||
FatalErrorHandler(fmt.Errorf("Required key %s not found in config file", key))
|
||||
FatalErrorHandler(fmt.Errorf("required key %s not found in config file", key))
|
||||
os.Exit(1)
|
||||
}
|
||||
return opt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue