| Index: appengine/logdog/coordinator/config/bigTable.go
|
| diff --git a/appengine/logdog/coordinator/config/bigTable.go b/appengine/logdog/coordinator/config/bigTable.go
|
| index 97045d143db95850e10a840c43897edeea40c63a..811e171abc41926a5d055a5174ac66843eafd0f6 100644
|
| --- a/appengine/logdog/coordinator/config/bigTable.go
|
| +++ b/appengine/logdog/coordinator/config/bigTable.go
|
| @@ -79,7 +79,7 @@ func GetStorage(c context.Context) (storage.Storage, error) {
|
| // calls.
|
| c = metadata.NewContext(c, nil)
|
|
|
| - return bigtable.New(c, bigtable.Options{
|
| + st, err := bigtable.New(c, bigtable.Options{
|
| Project: bt.Project,
|
| Zone: bt.Zone,
|
| Cluster: bt.Cluster,
|
| @@ -87,5 +87,10 @@ func GetStorage(c context.Context) (storage.Storage, error) {
|
| ClientOptions: []cloud.ClientOption{
|
| cloud.WithTokenSource(a.TokenSource()),
|
| },
|
| - }), nil
|
| + })
|
| + if err != nil {
|
| + log.WithError(err).Errorf(c, "Failed to create BigTable instance.")
|
| + return nil, err
|
| + }
|
| + return st, nil
|
| }
|
|
|