You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, fmt.Errorf("unable to check if %s is a file. Error: %v", customConf, err)
84
+
returnnil, fmt.Errorf("unable to check if %s is a file. Error: %v", opts.CustomConf, err)
79
85
}
80
86
ifisFile {
81
-
iferr:=cfg.Append(customConf); err!=nil {
82
-
returnnil, fmt.Errorf("failed to load custom conf '%s': %v", customConf, err)
87
+
iferr:=cfg.Append(opts.CustomConf); err!=nil {
88
+
returnnil, fmt.Errorf("failed to load custom conf '%s': %v", opts.CustomConf, err)
83
89
}
84
90
newFile=false
85
91
}
86
92
}
87
93
88
-
ifnewFile&&!allowEmpty {
94
+
ifnewFile&&!opts.AllowEmpty {
89
95
returnnil, fmt.Errorf("unable to find configuration file: %q, please ensure you are running in the correct environment or set the correct configuration file with -c", CustomConf)
0 commit comments