Make contentRootPath error give failed path

This commit is contained in:
Ryan Brandenburg 2016-04-15 14:47:22 -07:00
parent eb8c0a2634
commit 6a57ec1fa9
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ namespace Microsoft.AspNetCore.Hosting.Internal
} }
if (!Directory.Exists(contentRootPath)) 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; hostingEnvironment.ApplicationName = applicationName;