diff options
| author | Tommaso Sciortino <[email protected]> | 2025-06-23 18:37:41 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-24 01:37:41 +0000 |
| commit | 0abd2a644e947b7794dd68615d5d3d1553b0b5fd (patch) | |
| tree | 66c694836649c2b9cec97acdab6a5ab429329618 /packages/core/src/code_assist | |
| parent | 104f23da90f506c75ac9ec44cbe63dacf0f04dcf (diff) | |
Improve Auth error messaging (#1358)
Diffstat (limited to 'packages/core/src/code_assist')
| -rw-r--r-- | packages/core/src/code_assist/errors.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/packages/core/src/code_assist/errors.ts b/packages/core/src/code_assist/errors.ts deleted file mode 100644 index f870ab5c..00000000 --- a/packages/core/src/code_assist/errors.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @license - * Copyright 2025 Google LLC - * SPDX-License-Identifier: Apache-2.0 - */ - -import { GaxiosError } from 'gaxios'; - -export function isAuthError(error: unknown): boolean { - return ( - error instanceof GaxiosError && error.response?.data?.error?.code === 401 - ); -} |
