TUN-3988: Log why it cannot check if origin cert exists

This commit is contained in:
cthuang 2021-03-01 09:23:18 +00:00 committed by Chung Ting Huang
parent 53a69a228a
commit b73c039070
1 changed files with 1 additions and 1 deletions

View File

@ -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 {