diff --git a/internal/command/machine/list.go b/internal/command/machine/list.go index 50ca8beae9..30eac61a77 100644 --- a/internal/command/machine/list.go +++ b/internal/command/machine/list.go @@ -65,7 +65,7 @@ func runMachineList(ctx context.Context) (err error) { machines, err := flapsClient.List(ctx, "") if err != nil { - return fmt.Errorf("machines could not be retrieved") + return err } if cfg.JSONOutput {