Skip to content

Commit 0cc129b

Browse files
author
Mathieu Tortuyaux
committed
fixup! locksmithctl/locksmithcl: fix endpoints resilience
1 parent 91be947 commit 0cc129b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

locksmithctl/locksmithctl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func getClient() (*lock.EtcdLockClient, error) {
249249
return lc, nil
250250
}
251251

252-
return nil, errors.New("no etcd endpoints available, tried: %s", strings.Join(",", globalFlags.Endpoints))
252+
return nil, fmt.Errorf("no etcd endpoints available, tried: %s", strings.Join(globalFlags.Endpoints, ","))
253253
}
254254

255255
// flagsFromEnv parses all registered flags in the given flagSet,

0 commit comments

Comments
 (0)