From 082dd9a54e4e200dee2136d99d6bfcc61a91c34f Mon Sep 17 00:00:00 2001 From: Will Jordan Date: Fri, 20 Sep 2024 09:48:30 -0700 Subject: [PATCH] return error message for machines list failure --- internal/command/machine/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {