mirror of
https://github.com/lima-vm/lima.git
synced 2026-10-28 11:44:35 +08:00
`listInstances` passed the stderr of `limactl list --json` through to the terminal. On a fresh installation it printed "No instance found. Run `limactl create` to create an instance." before the TUI started. The warning stayed hidden behind the TUI and reappeared when the menu suspended to run `limactl create`, which was confusing. Buffer the stderr and only include it in the error when the command fails. Also fix the error from `cmd.Start()` being discarded. Fixes #5681 Assisted-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>