Return a plain error from RA

This commit is contained in:
Richard Barnes 2015-10-13 15:54:21 -07:00
parent bd1f8d1e42
commit 0da6d48b06
1 changed files with 1 additions and 1 deletions

View File

@ -610,7 +610,7 @@ func (ra *RegistrationAuthorityImpl) UpdateRegistration(base core.Registration,
func (ra *RegistrationAuthorityImpl) UpdateAuthorization(base core.Authorization, challengeIndex int, response core.Challenge) (authz core.Authorization, err error) {
// Refuse to update expired authorizations
if base.Expires == nil || base.Expires.Before(ra.clk.Now()) {
err = core.MalformedRequestError("Expired authorization")
err = fmt.Errorf("Expired authorization")
return
}