diff --git a/src/Microsoft.AspNetCore.Hosting/Internal/HostingEnvironmentExtensions.cs b/src/Microsoft.AspNetCore.Hosting/Internal/HostingEnvironmentExtensions.cs index 9bf79eb4f8..7bfc0a7d0d 100644 --- a/src/Microsoft.AspNetCore.Hosting/Internal/HostingEnvironmentExtensions.cs +++ b/src/Microsoft.AspNetCore.Hosting/Internal/HostingEnvironmentExtensions.cs @@ -25,7 +25,7 @@ namespace Microsoft.AspNetCore.Hosting.Internal } if (!Directory.Exists(contentRootPath)) { - throw new ArgumentException("The provided content root does not exist.", nameof(contentRootPath)); + throw new ArgumentException($"The content root '{contentRootPath}' does not exist.", nameof(contentRootPath)); } hostingEnvironment.ApplicationName = applicationName;