Skip to content

Commit ad64c0c

Browse files
committed
limactl: let limactl edit non-existent-instance fail
Signed-off-by: Akihiro Suda <[email protected]>
1 parent f35b3f1 commit ad64c0c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/limactl/edit.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ func editAction(cmd *cobra.Command, args []string) error {
4343
inst, err := store.Inspect(instName)
4444
if err != nil {
4545
if errors.Is(err, os.ErrNotExist) {
46-
logrus.Infof("Instance %q not found", instName)
47-
return nil
46+
return fmt.Errorf("Instance %q not found", instName)
4847
}
4948
return err
5049
}

0 commit comments

Comments
 (0)