Skip to content

Commit

Permalink
Fix formatting of CircularDependencyException error message (#53140)
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar authored May 24, 2021
1 parent 2e9cdea commit 5a26d12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void Add(Type serviceType, Type implementationType = null)
private string CreateCircularDependencyExceptionMessage(Type type)
{
var messageBuilder = new StringBuilder();
messageBuilder.AppendFormat(SR.CircularDependencyException, TypeNameHelper.GetTypeDisplayName(type));
messageBuilder.Append(SR.Format(SR.CircularDependencyException, TypeNameHelper.GetTypeDisplayName(type)));
messageBuilder.AppendLine();

AppendResolutionPath(messageBuilder, type);
Expand Down

0 comments on commit 5a26d12

Please sign in to comment.