Skip to content

Commit e622953

Browse files
committed
Update configuration load exception rethrow to match rules
1 parent 1ba6e8e commit e622953

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dapr.Extensions.Configuration/DaprSecretStoreConfigurationProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,11 @@ private async Task LoadAsync()
210210
.GetSecretAsync(store, secretDescriptor.SecretKey, secretDescriptor.Metadata)
211211
.ConfigureAwait(false);
212212
}
213-
catch (DaprException e)
213+
catch (DaprException)
214214
{
215215
if (secretDescriptor.IsRequired)
216216
{
217-
throw e;
217+
throw;
218218
}
219219

220220
Console.WriteLine($"'{secretDescriptor.SecretName}' doesn't exists in Key Vault but because " +

0 commit comments

Comments
 (0)