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 a09f897334
commit 3444c16741

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: