@@ -47,7 +47,7 @@ func main() {
47
47
48
48
// Read the settings from the configuration file
49
49
openReq := & rpc.ConfigurationOpenRequest {SettingsFormat : "yaml" }
50
- var configFileLoadingWarnings []string
50
+ var configFileWarnings []string
51
51
if configData , err := paths .New (configFile ).ReadFile (); err == nil {
52
52
openReq .EncodedSettings = string (configData )
53
53
} else if ! os .IsNotExist (err ) {
@@ -57,7 +57,7 @@ func main() {
57
57
feedback .FatalError (fmt .Errorf ("couldn't load configuration: %w" , err ), feedback .ErrGeneric )
58
58
} else if warnings := resp .GetWarnings (); len (warnings ) > 0 {
59
59
// Save the warnings to show them later when the feedback package is fully initialized
60
- configFileLoadingWarnings = warnings
60
+ configFileWarnings = warnings
61
61
}
62
62
63
63
// Get the current settings from the server
@@ -82,7 +82,7 @@ func main() {
82
82
// only if we are inside the "config ..." command. In JSON mode always
83
83
// output the warning.
84
84
if feedback .GetFormat () != feedback .Text || (cmd .HasParent () && cmd .Parent ().Name () == "config" ) {
85
- for _ , warning := range configFileLoadingWarnings {
85
+ for _ , warning := range configFileWarnings {
86
86
feedback .Warning (fmt .Sprintf ("%s: %s" , i18n .Tr ("Invalid value in configuration" ), warning ))
87
87
}
88
88
}
0 commit comments