Skip to content

Commit 3bdea6a

Browse files
authored
Merge pull request #2295 from BajuMcBites/error-on-invalid-ls
limactl ls $INSTANCE should exit with non-0 status if $INSTANCE does not exist #1139
2 parents 7b8933c + 9a2ada2 commit 3bdea6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/limactl/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func listAction(cmd *cobra.Command, args []string) error {
130130
if len(matches) > 0 {
131131
instanceNames = append(instanceNames, matches...)
132132
} else {
133-
logrus.Warnf("No instance matching %v found.", arg)
133+
return fmt.Errorf("no instance matching %v found", arg)
134134
}
135135
}
136136
} else {

0 commit comments

Comments
 (0)