refact(err): fix unhandled errors (#327)

Signed-off-by: aSquare14 <atibhi.a@gmail.com>
This commit is contained in:
Atibhi Agrawal 2021-05-06 19:28:32 +05:30 committed by GitHub
parent 73d9580817
commit 0f677b6afd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 7 deletions

View file

@ -190,6 +190,8 @@ func (s *nonBlockingGRPCServer) serve(endpoint string, ids csi.IdentityServer, c
klog.Infof("Listening for connections on address: %#v", listener.Addr())
// Start serving requests on the grpc server created
server.Serve(listener)
err = server.Serve(listener)
if err != nil {
klog.Fatal(err.Error())
}
}