fix(api): api error message [EE-6818]

pull/11369/head
prabhat khera 2024-03-13 12:24:33 +13:00
parent a2a4c85f2d
commit bf6d205d78
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ func (bouncer *RequestBouncer) mwAuthenticateFirst(tokenLookups []tokenLookup, n
for _, lookup := range tokenLookups {
resultToken, err := lookup(r)
if err != nil {
httperror.WriteError(w, http.StatusUnauthorized, "Invalid API key", httperrors.ErrUnauthorized)
httperror.WriteError(w, http.StatusUnauthorized, "Invalid token", httperrors.ErrUnauthorized)
return
}