Output original error on etcd sync failure.

Fixes #1141
This commit is contained in:
Jeff Mitchell 2016-02-26 15:15:23 -05:00
parent 00e546cb91
commit deed5cc121
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ func newEtcdBackend(conf map[string]string) (Backend, error) {
syncErr := c.Sync(ctx)
cancel()
if syncErr != nil {
return nil, EtcdSyncClusterError
return nil, fmt.Errorf("%s: %s", EtcdSyncClusterError, syncErr)
}
case "no", "false", "n", "0":
default: