mirror of
https://github.com/lima-vm/lima.git
synced 2026-10-28 11:44:35 +08:00
Merge pull request #4579 from jandubois/limactl-shell
limactl should never ignore errors from store.Inspect
This commit is contained in:
1 file changed
+3
-3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user