From 9977eff153ff5f8b2d4ea7d5524792d08f0a2fc7 Mon Sep 17 00:00:00 2001 From: max furman Date: Wed, 10 Apr 2019 14:00:36 -0700 Subject: [PATCH] bump cli dep and fix text error msg --- Gopkg.lock | 2 +- authority/authorize.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 9b4c1153..9b208caa 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -298,7 +298,7 @@ "utils", ] pruneopts = "UT" - revision = "f851b6b63d8d5e78b8a986057034d69fe904c477" + revision = "1bfe8f76786f97b272ceb573c87945b696fefb78" [[projects]] branch = "master" diff --git a/authority/authorize.go b/authority/authorize.go index 96cc058c..62152d09 100644 --- a/authority/authorize.go +++ b/authority/authorize.go @@ -50,7 +50,7 @@ func (a *Authority) authorizeToken(ott string) (provisioner.Interface, error) { // This check is meant as a stopgap solution to the current lack of a persistence layer. if a.config.AuthorityConfig != nil && !a.config.AuthorityConfig.DisableIssuedAtCheck { if claims.IssuedAt != nil && claims.IssuedAt.Time().Before(a.startTime) { - return nil, &apiError{errors.New("authorize: token issued before the bootstrap of certificate authority"), + return nil, &apiError{errors.New("authorizeToken: token issued before the bootstrap of certificate authority"), http.StatusUnauthorized, errContext} } }