Skip to content

Commit

Permalink
Elaborate on Error message when bundle path is not present (#534)
Browse files Browse the repository at this point in the history
Spent some time diagnosing issue in release package as bundleconfig.json wasnt tagged as "Content" "copy if newer" so thought message could be improved slightly to help debug on hosting server environment.
  • Loading branch information
danjus10 committed Feb 10, 2021
1 parent 78f85ac commit 222e439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BundlerMinifier.TagHelpers/BundlesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private void LoadBundles()
if (_bundles == null)
{
if (!BundleHandler.TryGetBundles(_configurationPath, out var bundles))
throw new Exception("Unable to load bundles.");
throw new Exception($"Unable to load bundles from {_configurationPath}.");

var result = new List<Bundle>();
foreach (var bundle in bundles)
Expand Down

0 comments on commit 222e439

Please sign in to comment.