Use Exists property to determine if the file exists.

Resolve #3341
pull/3347/head
maliming 5 years ago
parent 582aa69ed0
commit a8d4e7c229

@ -63,7 +63,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers
foreach (var bundleFile in bundleFiles)
{
var file = WebContentFileProvider.GetFileInfo(bundleFile);
if (file == null)
if (!file.Exists)
{
throw new AbpException($"Could not find the bundle file from {nameof(IWebContentFileProvider)}");
}

Loading…
Cancel
Save