From 3218241512436ea9380f29e31ff991583f7baf7c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 01:04:51 +0000 Subject: [PATCH] Fix linter error: change error message to start with "failed to" Update error message on line 639 from "bearer authentication failed" to "failed to authenticate with bearer token" to comply with the project's error message format requirement. The linter enforces that error messages should start with "failed to" followed by the action that failed, which is the pattern used throughout the codebase. Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com> --- pkg/api/authn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/authn.go b/pkg/api/authn.go index 371c2927..124c13cf 100644 --- a/pkg/api/authn.go +++ b/pkg/api/authn.go @@ -636,7 +636,7 @@ func bearerAuthHandler(ctlr *Controller) mux.MiddlewareFunc { ctlr.Log.Debug().Msg("no bearer token provided") } else { // Bearer token provided but authentication failed - ctlr.Log.Error().Msg("bearer authentication failed") + ctlr.Log.Error().Msg("failed to authenticate with bearer token") } response.Header().Set("Content-Type", "application/json")