From b73c039070db23fb6e40ec4ea0c40ca9aa9cb573 Mon Sep 17 00:00:00 2001 From: cthuang Date: Mon, 1 Mar 2021 09:23:18 +0000 Subject: [PATCH] TUN-3988: Log why it cannot check if origin cert exists --- cmd/cloudflared/tunnel/configuration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cloudflared/tunnel/configuration.go b/cmd/cloudflared/tunnel/configuration.go index 97e455ee..559b84ac 100644 --- a/cmd/cloudflared/tunnel/configuration.go +++ b/cmd/cloudflared/tunnel/configuration.go @@ -109,7 +109,7 @@ func findOriginCert(originCertPath string, log *zerolog.Logger) (string, error) // Check that the user has acquired a certificate using the login command ok, err := config.FileExists(originCertPath) if err != nil { - log.Error().Msgf("Cannot check if origin cert exists at path %s", originCertPath) + log.Error().Err(err).Msgf("Cannot check if origin cert exists at path %s", originCertPath) return "", fmt.Errorf("cannot check if origin cert exists at path %s", originCertPath) } if !ok {