There was an error while loading. Please reload this page.
1 parent 7405045 commit 4a78c58Copy full SHA for 4a78c58
1 file changed
conf/read.go
@@ -55,7 +55,7 @@ func ReadYAMLData(yml []byte, noAPIKey bool, extra, start string) (*Cfg, error)
55
56
// error from cfg.parse()
57
if err != nil {
58
- return nil, err
+ return &cfg, err // return a valid Cfg, because the error can be ignored
59
}
60
61
return &cfg, cfg.validate(noAPIKey)
0 commit comments