diff --git a/src/Microsoft.TemplateEngine.Edge/Installers/NuGet/NugetApiPackageManager.cs b/src/Microsoft.TemplateEngine.Edge/Installers/NuGet/NugetApiPackageManager.cs index 2897de0be70..2bce5550d7b 100644 --- a/src/Microsoft.TemplateEngine.Edge/Installers/NuGet/NugetApiPackageManager.cs +++ b/src/Microsoft.TemplateEngine.Edge/Installers/NuGet/NugetApiPackageManager.cs @@ -57,7 +57,7 @@ public async Task DownloadPackageAsync(string downloadPath, st { throw new ArgumentException($"{nameof(identifier)} cannot be null or empty", nameof(identifier)); } - if (string.IsNullOrWhiteSpace(identifier)) + if (string.IsNullOrWhiteSpace(downloadPath)) { throw new ArgumentException($"{nameof(downloadPath)} cannot be null or empty", nameof(downloadPath)); }