Restore missing errcheck

This commit is contained in:
Daniel 2018-12-06 15:10:22 -05:00
parent 9e39680e3f
commit 5c7d4e5800
2 changed files with 8 additions and 0 deletions

View File

@ -1116,6 +1116,10 @@ func (wfe *WebFrontEndImpl) postChallenge(
returnAuthz = updatedAuthz
} else {
returnAuthz, err = wfe.RA.UpdateAuthorization(ctx, authz, challengeIndex, challengeUpdate)
if err != nil {
wfe.sendError(response, logEvent, web.ProblemDetailsForError(err, "Unable to update challenge"), err)
return
}
}
}

View File

@ -1031,6 +1031,10 @@ func (wfe *WebFrontEndImpl) postChallenge(
returnAuthz = updatedAuthz
} else {
returnAuthz, err = wfe.RA.UpdateAuthorization(ctx, authz, challengeIndex, core.Challenge{})
if err != nil {
wfe.sendError(response, logEvent, web.ProblemDetailsForError(err, "Unable to update challenge"), err)
return
}
}
}