From bfd17bdd1f5390a42e93253f0a0d7a6ba9a37630 Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Mon, 21 Nov 2022 15:46:33 +0100 Subject: [PATCH] Fix error message Signed-off-by: Antonio Navarro Perez --- core/commands/swarm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/swarm.go b/core/commands/swarm.go index 31eae22291c..073b4737110 100644 --- a/core/commands/swarm.go +++ b/core/commands/swarm.go @@ -1134,7 +1134,7 @@ func updateAndPersistConfig(env cmds.Environment, update func(*config.Config)) e } update(cfg) if err := r.SetConfig(cfg); err != nil { - return fmt.Errorf("error removing peers from repo config: %w", err) + return fmt.Errorf("error setting config: %w", err) } return nil }