From 654c237094669c3756c1f181ea5059cbe53894ef Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Thu, 14 Oct 2021 17:23:40 +0200 Subject: [PATCH] add missing error handling --- graph/pkg/service/v0/drives.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/graph/pkg/service/v0/drives.go b/graph/pkg/service/v0/drives.go index b2b3ad4fcf..a40288a8f9 100644 --- a/graph/pkg/service/v0/drives.go +++ b/graph/pkg/service/v0/drives.go @@ -419,6 +419,10 @@ func (g Graph) formatDrives(ctx context.Context, baseURL *url.URL, mds []*storag func (g Graph) getDriveQuota(ctx context.Context, space *storageprovider.StorageSpace) (msgraph.Quota, error) { client, err := g.GetClient() + if err != nil { + g.logger.Error().Err(err).Msg("error creating grpc client") + return msgraph.Quota{}, err + } req := &gateway.GetQuotaRequest{ Ref: &provider.Reference{