Skip to content

Commit a9bcea4

Browse files
update
1 parent c637682 commit a9bcea4

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/error.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT license.
33

44
import { isRestError } from "@azure/core-rest-pipeline";
5-
import { AuthenticationError } from "@azure/identity";
65

76
/**
87
* Error thrown when an operation cannot be performed by the Azure App Configuration provider.
@@ -42,8 +41,7 @@ export function isFailoverableError(error: any): boolean {
4241
}
4342

4443
export function isRetriableError(error: any): boolean {
45-
if (error instanceof AuthenticationError || // this error occurs when using wrong credential to access the key vault
46-
error instanceof ArgumentError || // this error is caused by misconfiguration of the Azure App Configuration provider
44+
if (error instanceof ArgumentError ||
4745
error instanceof OperationError ||
4846
error instanceof TypeError ||
4947
error instanceof RangeError) {

src/keyvault/AzureKeyVaultKeyValueAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class AzureKeyVaultKeyValueAdapter implements IKeyValueAdapter {
4747

4848
// When code reaches here, it means the key vault secret reference is not resolved.
4949

50-
throw new ArgumentError("Failed to process the key vault reference. No key vault credential or secret resolver callback is configured.");
50+
throw new ArgumentError("Failed to process the key vault reference. No key vault secret client, credential or secret resolver callback is configured.");
5151
}
5252

5353
/**

src/refresh/RefreshTimer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { ArgumentError } from "../error.js";
5-
64
export class RefreshTimer {
75
#backoffEnd: number; // Timestamp
86
#interval: number;

0 commit comments

Comments
 (0)