From 8e7bf96769dd5a0aed047e6975285b4d85e6601f Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Wed, 29 Jul 2020 18:05:22 -0700 Subject: [PATCH] Fix error prefix. --- authority/provisioner/x5c.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authority/provisioner/x5c.go b/authority/provisioner/x5c.go index ee05078e..69d5ba59 100644 --- a/authority/provisioner/x5c.go +++ b/authority/provisioner/x5c.go @@ -259,7 +259,7 @@ func (p *X5C) AuthorizeSSHSign(ctx context.Context, token string) ([]SignOption, // Use options in the token. if opts.CertType != "" { if certType, err = sshutil.CertTypeFromString(opts.CertType); err != nil { - return nil, errs.Wrap(http.StatusBadRequest, err, "jwk.AuthorizeSSHSign") + return nil, errs.Wrap(http.StatusBadRequest, err, "x5c.AuthorizeSSHSign") } } if opts.KeyID != "" { @@ -277,7 +277,7 @@ func (p *X5C) AuthorizeSSHSign(ctx context.Context, token string) ([]SignOption, templateOptions, err := TemplateSSHOptions(p.SSHOptions, data) if err != nil { - return nil, errs.Wrap(http.StatusInternalServerError, err, "jwk.AuthorizeSign") + return nil, errs.Wrap(http.StatusInternalServerError, err, "x5c.AuthorizeSSHSign") } signOptions = append(signOptions, templateOptions)