A convenient CLI tool to quickly spin up DragonflyBSD virtual machines using QEMU with sensible defaults.

refactor: remove database error handling from rm and start commands

-15
-10
src/subcommands/rm.ts
··· 19 19 console.error(`Virtual machine with name or ID ${name} not found.`); 20 20 Deno.exit(1); 21 21 }), 22 - DatabaseQueryError: (error) => 23 - Effect.sync(() => { 24 - console.error(`Database error: ${error.message}`); 25 - Deno.exit(1); 26 - }), 27 - DatabaseDeleteError: (error) => 28 - Effect.sync(() => { 29 - console.error(`Failed to delete from database: ${error.message}`); 30 - Deno.exit(1); 31 - }), 32 22 }), 33 23 Effect.catchAll((error) => 34 24 Effect.sync(() => {
-5
src/subcommands/start.ts
··· 181 181 console.error(`Virtual machine with name or ID ${name} not found.`); 182 182 Deno.exit(1); 183 183 }), 184 - DatabaseQueryError: (error) => 185 - Effect.sync(() => { 186 - console.error(`Database error: ${error.message}`); 187 - Deno.exit(1); 188 - }), 189 184 }), 190 185 Effect.catchAll((error) => 191 186 Effect.sync(() => {