Skip to content

Commit ce8ef63

Browse files
authored
Merge pull request #360 from rancher-sandbox/stop-f
Include hint to use `stop -f` if status isn't "Running"
2 parents f55ff6f + deb8c61 commit ce8ef63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/limactl/stop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func stopAction(cmd *cobra.Command, args []string) error {
6060

6161
func stopInstanceGracefully(inst *store.Instance) error {
6262
if inst.Status != store.StatusRunning {
63-
return fmt.Errorf("expected status %q, got %q", store.StatusRunning, inst.Status)
63+
return fmt.Errorf("expected status %q, got %q (maybe use `limactl stop -f`?)", store.StatusRunning, inst.Status)
6464
}
6565

6666
begin := time.Now() // used for logrus propagation

0 commit comments

Comments
 (0)