TUN-3988: Log why it cannot check if origin cert exists
This commit is contained in:
parent
53a69a228a
commit
b73c039070
|
@ -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
|
// Check that the user has acquired a certificate using the login command
|
||||||
ok, err := config.FileExists(originCertPath)
|
ok, err := config.FileExists(originCertPath)
|
||||||
if err != nil {
|
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)
|
return "", fmt.Errorf("cannot check if origin cert exists at path %s", originCertPath)
|
||||||
}
|
}
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in New Issue