19166: Improve error messages.
[arvados.git] / lib / controller / localdb / container_gateway.go
index 90c95deb35444e6d27efa02958dc71ebe287c779..77c5182e9cd924460b81a39770f647baefb3af19 100644 (file)
@@ -187,7 +187,7 @@ func (conn *Conn) ContainerSSH(ctx context.Context, opts arvados.ContainerSSHOpt
        })
        err = tlsconn.HandshakeContext(ctx)
        if err != nil {
-               return sshconn, httpserver.ErrorWithStatus(err, http.StatusBadGateway)
+               return sshconn, httpserver.ErrorWithStatus(fmt.Errorf("TLS handshake failed: %w", err), http.StatusBadGateway)
        }
        if respondAuth == "" {
                tlsconn.Close()