Skip to content

Commit 93b018b

Browse files
committed
Clearify error message if user tries to uninstall a nonkube site.
1 parent 719c939 commit 93b018b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/cmd/skupper/system/nonkube/system_uninstall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (cmd *CmdSystemUninstall) Run() error {
9999
err := cmd.SystemUninstall(string(config.GetPlatform()))
100100

101101
if err != nil {
102-
return fmt.Errorf("failed to uninstall : %s", err)
102+
return fmt.Errorf("Unable to communicate with the Container Engine.\nRun: \"skupper system install\" to prepare the local environment and start the controller.\n\nError: %s", err)
103103
}
104104

105105
return nil

internal/cmd/skupper/system/nonkube/system_uninstall_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func TestCmdSystemUninstall_Run(t *testing.T) {
139139
{
140140
name: "disable socket fails",
141141
disableSocketFails: true,
142-
errorMessage: "failed to uninstall : disable socket fails",
142+
errorMessage: "Unable to communicate with the Container Engine.\nRun: \"skupper system install\" to prepare the local environment and start the controller.\n\nError: disable socket fails",
143143
flags: &common.CommandSystemUninstallFlags{Force: false},
144144
},
145145
}

0 commit comments

Comments
 (0)