From cc13d0c80bd40c95708dc23c2d196f507cca0608 Mon Sep 17 00:00:00 2001 From: Adam Chalkley Date: Tue, 12 Nov 2024 06:31:10 -0600 Subject: [PATCH] Update enclosing error message prefix Reduce duplication by clarifying the intent behind the calling function (by way of updating the wrapping error msg prefix). refs GH-815 --- internal/mbxs/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mbxs/auth.go b/internal/mbxs/auth.go index ffa46848..2e824731 100644 --- a/internal/mbxs/auth.go +++ b/internal/mbxs/auth.go @@ -134,7 +134,7 @@ func OAuth2ClientCredsAuth( if err != nil { logger.Debug().Err(err).Msg("Failed to retrieve token") return fmt.Errorf( - "failed to retrieve token: %w", + "failed to authenticate: %w", err, ) }