chore: wrap errors. (#1070)

This commit is contained in:
Ludovic Fernandez 2020-02-27 19:14:46 +01:00 committed by GitHub
parent 9d31db300b
commit 2da1ce06ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
114 changed files with 584 additions and 565 deletions

View file

@ -79,7 +79,7 @@ func (c *SolverManager) chooseSolver(authz acme.Authorization) solver {
func validate(core *api.Core, domain string, chlg acme.Challenge) error {
chlng, err := core.Challenges.New(chlg.URL)
if err != nil {
return fmt.Errorf("failed to initiate challenge: %v", err)
return fmt.Errorf("failed to initiate challenge: %w", err)
}
valid, err := checkChallengeStatus(chlng)