Merge pull request #4579 from jandubois/limactl-shell

limactl should never ignore errors from store.Inspect
This commit is contained in:
Akihiro Suda authored and GitHub committed 2026-02-15 14:41:27 +09:00
commit 7286f716da
1 file changed
+3 -3
+3 -3
View File
@@ -107,10 +107,10 @@ func shellAction(cmd *cobra.Command, args []string) error {
}
return err
}
if len(inst.Errors) > 0 {
logrus.WithError(errors.Join(inst.Errors...)).Errorf("Instance %q has configuration errors", instName)
}
if inst.Config == nil {
if len(inst.Errors) > 0 {
return fmt.Errorf("instance %q has configuration errors: %w", instName, errors.Join(inst.Errors...))
}
return fmt.Errorf("instance %q has no configuration", instName)
}
if inst.Status == limatype.StatusStopped {