From 6a57ec1fa9693f2cdf12817a19d3219c63d8a076 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Fri, 15 Apr 2016 14:47:22 -0700 Subject: [PATCH] Make contentRootPath error give failed path --- .../Internal/HostingEnvironmentExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;