THRIFT-2118 Certificate error handling still incorrect
Patch: Jens Geyer
diff --git a/tutorial/go/src/server.go b/tutorial/go/src/server.go
index 0374cde..ebcfe5b 100644
--- a/tutorial/go/src/server.go
+++ b/tutorial/go/src/server.go
@@ -33,9 +33,7 @@
cfg := new(tls.Config)
if cert, err := tls.LoadX509KeyPair("server.crt", "server.key"); err == nil {
cfg.Certificates = append(cfg.Certificates, cert)
- }
- if err != nil {
- fmt.Println("Unable to load server certificate and key")
+ } else {
return err
}
transport, err = thrift.NewTSSLServerSocket(addr, cfg)