Make contentRootPath error give failed path
This commit is contained in:
parent
eb8c0a2634
commit
6a57ec1fa9
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue