diff --git a/bolt/keyvalue_log.go b/bolt/keyvalue_log.go index 3f16f6ff437..13b299e03f7 100644 --- a/bolt/keyvalue_log.go +++ b/bolt/keyvalue_log.go @@ -192,7 +192,7 @@ func (c *Client) forEachLogEntry(ctx context.Context, tx *bolt.Tx, k []byte, opt k, v := cur.Seek(startKey) if !bytes.Equal(k, startKey) { - return fmt.Errorf("the first key not the key found in the log bounds. This should be impossible. Please report this error.") + return fmt.Errorf("the first key not the key found in the log bounds. This should be impossible. Please report this error") } count := 0 diff --git a/bolt/secret.go b/bolt/secret.go index 83fcbe41c54..3253237372f 100644 --- a/bolt/secret.go +++ b/bolt/secret.go @@ -162,7 +162,7 @@ func encodeSecretKey(orgID platform.ID, k string) ([]byte, error) { func decodeSecretKey(key []byte) (platform.ID, string, error) { if len(key) < platform.IDLength { // This should not happen. - return platform.InvalidID(), "", errors.New("provided key is too short to contain an ID. Please report this error.") + return platform.InvalidID(), "", errors.New("provided key is too short to contain an ID. Please report this error") } var id platform.ID diff --git a/chronograf/server/users.go b/chronograf/server/users.go index 04a717523db..44e4bb7b40f 100644 --- a/chronograf/server/users.go +++ b/chronograf/server/users.go @@ -356,7 +356,7 @@ func setSuperAdmin(ctx context.Context, req userRequest, user *chronograf.User) } else if !isSuperAdmin && (user.SuperAdmin != req.SuperAdmin) { // If req.SuperAdmin has been set, and the request was not made with the SuperAdmin // context, return error - return fmt.Errorf("user does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/platform/chronograf/issues/2601 for more information.") + return fmt.Errorf("user does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/platform/chronograf/issues/2601 for more information") } return nil diff --git a/chronograf/server/users_test.go b/chronograf/server/users_test.go index 635a7b17e43..795b968c499 100644 --- a/chronograf/server/users_test.go +++ b/chronograf/server/users_test.go @@ -354,7 +354,7 @@ func TestService_NewUser(t *testing.T) { }, wantStatus: http.StatusUnauthorized, wantContentType: "application/json", - wantBody: `{"code":401,"message":"user does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/platform/chronograf/issues/2601 for more information."}`, + wantBody: `{"code":401,"message":"user does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/platform/chronograf/issues/2601 for more information"}`, }, { name: "Create a new SuperAdmin User - as superadmin", @@ -1264,7 +1264,7 @@ func TestService_UpdateUser(t *testing.T) { id: "1336", wantStatus: http.StatusUnauthorized, wantContentType: "application/json", - wantBody: `{"code":401,"message":"user does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/platform/chronograf/issues/2601 for more information."}`, + wantBody: `{"code":401,"message":"user does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/platform/chronograf/issues/2601 for more information"}`, }, { name: "Update a Chronograf user to super admin - with super admin context", diff --git a/nats/server.go b/nats/server.go index b2b2fdb3ef2..b7abf698516 100644 --- a/nats/server.go +++ b/nats/server.go @@ -9,7 +9,7 @@ import ( const ServerName = "platform" -var ErrNoNatsConnection = errors.New("nats connection has not been established. Call Open() first.") +var ErrNoNatsConnection = errors.New("nats connection has not been established. Call Open() first") // Server wraps a connection to a NATS streaming server type Server struct {