@@ -316,7 +316,7 @@ func (this *CertCache) isHealthy(ocspResp []byte) error {
316
316
}
317
317
resp , err := ocsp .ParseResponseForCert (ocspResp , this .getCert (), issuer )
318
318
if err != nil {
319
- return errors .Wrap (err , "Error parsing OCSP response. " )
319
+ return errors .Wrap (err , "Error parsing OCSP response" )
320
320
}
321
321
if resp .NextUpdate .Before (time .Now ()) {
322
322
return errors .Errorf ("Cached OCSP is stale, NextUpdate: %v" , resp .NextUpdate )
@@ -348,7 +348,7 @@ func (this *CertCache) readOCSPHelper(numTries int, exhaustedRetries bool) ([]by
348
348
}
349
349
if err := this .isHealthy (ocsp ); err != nil {
350
350
if exhaustedRetries {
351
- return nil , time.Time {}, errors .Wrap (err , "OCSP failed health check. " )
351
+ return nil , time.Time {}, errors .Wrap (err , "OCSP failed health check" )
352
352
} else {
353
353
return nil , time.Time {}, nil
354
354
}
@@ -801,7 +801,7 @@ func (this *CertCache) reloadCertIfExpired() {
801
801
// it doesn't matter because the old certs won't be overridden (and the old certs are probably invalid, too).
802
802
certs , err := certloader .LoadAndValidateCertsFromFile (this .CertFile , true )
803
803
if err != nil {
804
- log .Println (errors .Wrap (err , "Can't load cert file. " ))
804
+ log .Println (errors .Wrap (err , "Can't load cert file" ))
805
805
certs = nil
806
806
}
807
807
if certs != nil {
@@ -810,7 +810,7 @@ func (this *CertCache) reloadCertIfExpired() {
810
810
811
811
newCerts , err := certloader .LoadAndValidateCertsFromFile (this .NewCertFile , true )
812
812
if err != nil {
813
- log .Println (errors .Wrap (err , "Can't load new cert file. " ))
813
+ log .Println (errors .Wrap (err , "Can't load new cert file" ))
814
814
newCerts = nil
815
815
}
816
816
if newCerts != nil {
@@ -834,7 +834,7 @@ func PopulateCertCache(config *util.Config, key crypto.PrivateKey,
834
834
835
835
certs , err := certloader .LoadCertsFromFile (config , developmentMode )
836
836
if err != nil {
837
- log .Println (errors .Wrap (err , "Can't load cert file. " ))
837
+ log .Println (errors .Wrap (err , "Can't load cert file" ))
838
838
certs = nil
839
839
}
840
840
domain := ""
@@ -849,7 +849,7 @@ func PopulateCertCache(config *util.Config, key crypto.PrivateKey,
849
849
850
850
certFetcher , err := certloader .CreateCertFetcher (config , key , domain , developmentMode , autoRenewCert )
851
851
if err != nil {
852
- return nil , errors .Wrap (err , "creating cert fetcher from config. " )
852
+ return nil , errors .Wrap (err , "creating cert fetcher from config" )
853
853
}
854
854
certCache := New (certs , certFetcher , []string {domain }, config .CertFile , config .NewCertFile , config .OCSPCache )
855
855
0 commit comments