Skip to content

Commit

Permalink
Improve getX509CertByDomain()
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeguy committed Aug 7, 2024
1 parent 19f148b commit ea5b69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func getSiteByDomainWithWww(domain string) *object.Site {
func getX509CertByDomain(domain string) (*tls.Certificate, error) {
cert, err := object.GetCertByDomain(domain)
if err != nil {
return nil, fmt.Errorf("getX509CertByDomain() error: %v", err)
return nil, fmt.Errorf("getX509CertByDomain() error: %v, domain: [%s]", err, domain)
}
if cert == nil {
return nil, fmt.Errorf("getX509CertByDomain() error: cert not found for domain: [%s]", domain)
Expand Down

0 comments on commit ea5b69c

Please sign in to comment.