Skip to content

Commit

Permalink
Fix ErrorMessage_CouldNotMapToAction (#6665)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittjoseph authored May 21, 2024
1 parent 3cb7701 commit 92ea1fe
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;

Expand Down Expand Up @@ -83,7 +84,11 @@ public async Task<IDictionary<string, CollectionRuleActionResult>> ExecuteAction

if (!_actionOperations.TryCreateFactory(actionOption.Type, out factory))
{
throw new InvalidOperationException(Strings.ErrorMessage_CouldNotMapToAction);
throw new InvalidOperationException(string.Format(
CultureInfo.InvariantCulture,
Strings.ErrorMessage_CouldNotMapToAction,
actionOption.Type
));
}

object newSettings = dependencyAnalyzer.SubstituteOptionValues(actionResults, actionIndex, actionOption.Settings);
Expand Down

0 comments on commit 92ea1fe

Please sign in to comment.