Browse Source

Merge pull request #3347 from abpframework/maliming/patch-4

Use Exists property to determine if the file exists.
pull/3475/head
Halil İbrahim Kalkan 7 years ago
committed by GitHub
parent
commit
70ded71c00
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Bundling/TagHelpers/AbpTagHelperResourceService.cs

2
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Bundling/TagHelpers/AbpTagHelperResourceService.cs

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

Loading…
Cancel
Save