Skip to content

Commit 9a5ca0d

Browse files
authored
Merge pull request #1469 from AkihiroSuda/edit-fail
limactl: let `limactl edit non-existent-instance` fail
2 parents f35b3f1 + ad64c0c commit 9a5ca0d

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)