From 11e501a2720fa44dcc31b9a689130e7a984cba3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Wed, 27 Dec 2023 23:47:02 +0100 Subject: [PATCH] lxd-to-incus: Clarify error messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #333 Signed-off-by: Stéphane Graber --- cmd/lxd-to-incus/validate.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/lxd-to-incus/validate.go b/cmd/lxd-to-incus/validate.go index e340c7b8f93..088b830d830 100644 --- a/cmd/lxd-to-incus/validate.go +++ b/cmd/lxd-to-incus/validate.go @@ -220,7 +220,7 @@ func (c *cmdMigrate) validate(source Source, target Target) error { for _, key := range deprecatedConfigs { _, ok := srcServerInfo.Config[key] if ok { - errors = append(errors, fmt.Errorf("Source server is using deprecated key %q", key)) + errors = append(errors, fmt.Errorf("Source server is using deprecated server configuration key %q", key)) } } @@ -244,7 +244,7 @@ func (c *cmdMigrate) validate(source Source, target Target) error { for _, key := range deprecatedNetworkConfigs { _, ok := network.Config[key] if ok { - errors = append(errors, fmt.Errorf("Source server has network %q using deprecated key %q", network.Name, key)) + errors = append(errors, fmt.Errorf("Source server has network %q using deprecated configuration key %q", network.Name, key)) } } } @@ -306,7 +306,7 @@ func (c *cmdMigrate) validate(source Source, target Target) error { for _, key := range deprecatedInstanceConfigs { _, ok := inst.Config[key] if ok { - errors = append(errors, fmt.Errorf("Source server has instance %q in project %q using deprecated key %q", inst.Name, project.Name, key)) + errors = append(errors, fmt.Errorf("Source server has instance %q in project %q using deprecated configuration key %q", inst.Name, project.Name, key)) } } @@ -314,7 +314,7 @@ func (c *cmdMigrate) validate(source Source, target Target) error { for _, key := range deprecatedInstanceDeviceConfigs { _, ok := device[key] if ok { - errors = append(errors, fmt.Errorf("Source server has device %q for instance %q in project %q using deprecated key %q", deviceName, inst.Name, project.Name, key)) + errors = append(errors, fmt.Errorf("Source server has device %q for instance %q in project %q using deprecated configuration key %q", deviceName, inst.Name, project.Name, key)) } } } @@ -329,7 +329,7 @@ func (c *cmdMigrate) validate(source Source, target Target) error { for _, key := range deprecatedInstanceConfigs { _, ok := profile.Config[key] if ok { - errors = append(errors, fmt.Errorf("Source server has profile %q in project %q using deprecated key %q", profile.Name, project.Name, key)) + errors = append(errors, fmt.Errorf("Source server has profile %q in project %q using deprecated configuration key %q", profile.Name, project.Name, key)) } } @@ -337,7 +337,7 @@ func (c *cmdMigrate) validate(source Source, target Target) error { for _, key := range deprecatedInstanceDeviceConfigs { _, ok := device[key] if ok { - errors = append(errors, fmt.Errorf("Source server has device %q for profile %q in project %q using deprecated key %q", deviceName, profile.Name, project.Name, key)) + errors = append(errors, fmt.Errorf("Source server has device %q for profile %q in project %q using deprecated configuration key %q", deviceName, profile.Name, project.Name, key)) } } }