v0.2.2 fixes: split only text sources, report a mode change once, don't block on open
Test / test (push) Canceled after 0s
Test / test (push) Canceled after 0s
This commit is contained in:
21 files changed
+368
-62
No files matched your search
+2
-2
@@ -96,8 +96,8 @@ func (b *Builder) Build() (*Config, error) {
|
||||
// 2. Load configuration
|
||||
loadErr := b.cfg.loadWithOptions(b.file, b.args, b.opts)
|
||||
if loadErr != nil && !errors.Is(loadErr, ErrConfigNotFound) {
|
||||
// Return on fatal load errors. ErrConfigNotFound is not fatal.
|
||||
return nil, wrapError(ErrFileAccess, loadErr)
|
||||
// Return on fatal load errors, labelled by source. ErrConfigNotFound is not fatal.
|
||||
return nil, loadErr
|
||||
}
|
||||
|
||||
// 3. Run non-typed validators
|
||||
|
||||
Reference in new issue
Block a user