Check for 403 status

This commit is contained in:
Michael B. Gale
2025-10-29 08:35:19 +00:00
parent 194ba0ee2d
commit 52a7bd7b6e
7 changed files with 7 additions and 7 deletions

View File

@@ -79301,7 +79301,7 @@ function wrapApiConfigurationError(e) {
"Please check that your token is valid and has the required permissions: contents: read, security-events: write"
);
}
if (isEnablementError(httpError.message)) {
if (httpError.status === 403 && isEnablementError(httpError.message)) {
return new ConfigurationError(
getFeatureEnablementError(httpError.message)
);