From 852d7a668ce035597b207f779cf62c06833f8403 Mon Sep 17 00:00:00 2001 From: Michael Landis Date: Mon, 24 Apr 2023 15:05:21 -0600 Subject: [PATCH] fix: fix environment variable interpolation (#424) --- src/Momento.Sdk/Auth/EnvMomentoTokenProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Momento.Sdk/Auth/EnvMomentoTokenProvider.cs b/src/Momento.Sdk/Auth/EnvMomentoTokenProvider.cs index 78b24248..4824642d 100644 --- a/src/Momento.Sdk/Auth/EnvMomentoTokenProvider.cs +++ b/src/Momento.Sdk/Auth/EnvMomentoTokenProvider.cs @@ -27,7 +27,7 @@ public EnvMomentoTokenProvider(string name) this.envVarName = name; if (String.IsNullOrEmpty(name)) { - throw new InvalidArgumentException($"Environment variable name is empty or null."); + throw new InvalidArgumentException($"Environment variable '{name}' is empty or null."); } AuthToken = Environment.GetEnvironmentVariable(name);