From: Lucas Di Pentima Date: Mon, 12 Oct 2020 14:23:18 +0000 (-0300) Subject: 16981: Fixes error reporting when failing to create a remote group. X-Git-Tag: 2.1.1~27^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/885a103aafafc37a5ebc5052feca6453cd0f096a 16981: Fixes error reporting when failing to create a remote group. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- 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