Skip to content

Commit

Permalink
Added message to exception to show which asset failed (#297)
Browse files Browse the repository at this point in the history
In reference to #190 the error message is not clear about which asset it tried to load, this simply adds that to the error message
[release]
  • Loading branch information
johan-antila-episerver authored Feb 12, 2024
1 parent 3356aa9 commit cde0096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebOptimizer.Core/Asset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static IEnumerable<string> ExpandGlobs(IAsset asset, IWebHostEnvironment

if (files.Count == 0)
{
throw new FileNotFoundException($"No files found matching exist in an asset");
throw new FileNotFoundException($"No files found matching exist in an asset {asset}");
}

asset.Items[PhysicalFilesKey] = files;
Expand Down

0 comments on commit cde0096

Please sign in to comment.