Change error message.

This commit is contained in:
Mariano Cano 2021-12-02 16:44:57 -08:00
parent d35848f7a9
commit 9fd147f3da

View file

@ -60,7 +60,7 @@ func (h *caHandler) SSHRenew(w http.ResponseWriter, r *http.Request) {
newCert, err := h.Authority.RenewSSH(ctx, oldCert) newCert, err := h.Authority.RenewSSH(ctx, oldCert)
if err != nil { if err != nil {
WriteError(w, errs.ForbiddenErr(err, "error signing ssh certificate")) WriteError(w, errs.ForbiddenErr(err, "error renewing ssh certificate"))
return return
} }
@ -70,7 +70,7 @@ func (h *caHandler) SSHRenew(w http.ResponseWriter, r *http.Request) {
identity, err := h.renewIdentityCertificate(r, notBefore, notAfter) identity, err := h.renewIdentityCertificate(r, notBefore, notAfter)
if err != nil { if err != nil {
WriteError(w, errs.ForbiddenErr(err, "error signing identity certificate")) WriteError(w, errs.ForbiddenErr(err, "error renewing identity certificate"))
return return
} }