update micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-12-13 13:37:12 +03:00
parent 468af3ba46
commit 417bb89f04
4 changed files with 8 additions and 5 deletions

View File

@@ -13,7 +13,6 @@ import (
var (
DefaultStructTag = "file"
ErrInvalidStruct = errors.New("invalid struct specified")
ErrPathNotExist = errors.New("path is not exist")
)
@@ -39,6 +38,10 @@ func (c *fileConfig) Init(opts ...config.Option) error {
}
}
if path == "" {
return ErrPathNotExist
}
c.path = path
return nil