From 7f9cad1e4ea3cff2bea48e6a7ef6d0842f242985 Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Thu, 18 Aug 2022 14:20:47 +0100 Subject: [PATCH] buildx: prevent duplicate "failed to find driver" message Signed-off-by: Justin Chadwell --- commands/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/util.go b/commands/util.go index 266887ab..38777420 100644 --- a/commands/util.go +++ b/commands/util.go @@ -63,7 +63,7 @@ func driversForNodeGroup(ctx context.Context, dockerCli command.Cli, ng *store.N var err error f, err = driver.GetFactory(ng.Driver, true) if err != nil { - return nil, errors.Errorf("failed to find driver %q", f) + return nil, err } } else { // empty driver means nodegroup was implicitly created as a default