Skip to content

Commit

Permalink
Fix ErrorMessage_CouldNotMapToAction (dotnet#6701)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Schmitt <[email protected]>
  • Loading branch information
github-actions[bot] and schmittjoseph authored May 21, 2024
1 parent 3577b00 commit ea9a554
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 ea9a554

Please sign in to comment.