git » chasquid » commit 0dc93d1

chasquid: Remove overly verbose error about TLS config

author Alberto Bertogli
2016-09-24 00:07:05 UTC
committer Alberto Bertogli
2016-10-09 23:51:04 UTC
parent 711459b79841cb2237c1225803289fd55774b4ba

chasquid: Remove overly verbose error about TLS config

chasquid.go +1 -1

diff --git a/chasquid.go b/chasquid.go
index e7397b8..ff33a0a 100644
--- a/chasquid.go
+++ b/chasquid.go
@@ -293,7 +293,7 @@ func (s *Server) getTLSConfig() (*tls.Config, error) {
 	for i := 0; i < len(s.certs); i++ {
 		conf.Certificates[i], err = tls.LoadX509KeyPair(s.certs[i], s.keys[i])
 		if err != nil {
-			return nil, fmt.Errorf("Error loading client certificate: %v", err)
+			return nil, err
 		}
 	}