Skip to content

Commit 6f1b5dd

Browse files
paulrnashMassimiliano Pippi
authored and
Massimiliano Pippi
committed
Fix wrong config file name in error message (#441)
The "new name" given in the error message is not correct - the new file name seems to be arduino-cli.yaml
1 parent d9504b6 commit 6f1b5dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cli/globals/configs.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ func InitConfigs() {
6666
// Read configuration from old configuration file if found, but output a warning.
6767
if old := paths.New(".cli-config.yml"); old.Exist() {
6868
logrus.Errorf("Old configuration file detected: %s.", old)
69-
logrus.Info("The name of this file has been changed to `arduino-yaml`, please rename the file fix it.")
69+
logrus.Info("The name of this file has been changed to `arduino-cli.yaml`, please rename the file fix it.")
7070
feedback.Error(
7171
fmt.Errorf("WARNING: Old configuration file detected: %s", old),
7272
"The name of this file has been changed to `arduino-yaml`, in a future release we will not support"+
73-
"the old name `.cli-config.yml` anymore. Please rename the file to `arduino-yaml` to silence this warning.")
73+
"the old name `.cli-config.yml` anymore. Please rename the file to `arduino-cli.yaml` to silence this warning.")
7474
readConfigFrom(old)
7575
}
7676

0 commit comments

Comments
 (0)