From 885a103aafafc37a5ebc5052feca6453cd0f096a Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Mon, 12 Oct 2020 11:23:18 -0300 Subject: [PATCH] 16981: Fixes error reporting when failing to create a remote group. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- tools/sync-groups/sync-groups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sync-groups/sync-groups.go b/tools/sync-groups/sync-groups.go index 5fdd82bfae..24e838c8f1 100644 --- a/tools/sync-groups/sync-groups.go +++ b/tools/sync-groups/sync-groups.go @@ -438,7 +438,7 @@ func ProcessFile( "group_class": "role", } if e := CreateGroup(cfg, &newGroup, groupData); e != nil { - err = fmt.Errorf("error creating group named %q: %s", groupName, err) + err = fmt.Errorf("error creating group named %q: %s", groupName, e) return } // Update cached group data -- 2.30.2