diff --git a/lib/lib.go b/lib/lib.go index c5a973fbd..7c10129e3 100644 --- a/lib/lib.go +++ b/lib/lib.go @@ -181,6 +181,9 @@ func OptLoadConfigFile(path string) Option { } o.Cfg, err = config.ReadFromFile(path) + if err != nil { + return err + } return nil } }