diff --git a/src/commands/vm.ts b/src/commands/vm.ts index f9c39a0..d300265 100644 --- a/src/commands/vm.ts +++ b/src/commands/vm.ts @@ -60,8 +60,14 @@ export function register(program: Command) { .command("stop") .description("Stop the VM") .action(async () => { - await vm.stop() - console.log("✔ VM stopped") + const spin = spinner("Stopping VM") + try { + await vm.stop() + spin.succeed("VM stopped") + } catch (err) { + spin.fail(String((err as Error).message ?? err)) + process.exit(1) + } }) vmCmd