Skip to content

Commit 7c266b0

Browse files
committed
Add "Requires authentication" to wrapApiConfigurationError
1 parent 8aac4e4 commit 7c266b0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/api-client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ export function wrapApiConfigurationError(e: unknown) {
306306
}
307307
if (
308308
httpError.message.includes("Bad credentials") ||
309-
httpError.message.includes("Not Found")
309+
httpError.message.includes("Not Found") ||
310+
httpError.message.includes("Requires authentication")
310311
) {
311312
return new ConfigurationError(
312313
"Please check that your token is valid and has the required permissions: contents: read, security-events: write",

0 commit comments

Comments
 (0)