Skip to content

Commit

Permalink
Fix wrong error message
Browse files Browse the repository at this point in the history
  • Loading branch information
PereViader committed Oct 16, 2024
1 parent e771f8e commit 1c9b076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ManualDi.Main/ManualDi.Main/Container/DiContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ internal object ResolveBinding<TInterface, TConcrete>(TypeBinding<TInterface, TC
injectedTypeBinding = typeBinding;

var instance = typeBinding.CreateConcreteDelegate!.Invoke(this) ??
throw new InvalidOperationException($"Could not create object for {GetType().FullName}");
throw new InvalidOperationException($"Could not create object for {typeof(TypeBinding<TInterface, TConcrete>).FullName}");
object objectInstance = instance;

if (typeBinding.TypeScope is TypeScope.Single)
Expand Down Expand Up @@ -117,7 +117,7 @@ internal object ResolveBinding(UnsafeTypeBinding typeBinding)
injectedTypeBinding = typeBinding;

var instance = typeBinding.CreateConcreteDelegate!.Invoke(this) ??
throw new InvalidOperationException($"Could not create object for {GetType().FullName}");
throw new InvalidOperationException($"Could not create object for UnsafeTypeBinding of ApparentType {typeBinding.ApparentType.FullName} and ConcreteType {typeBinding.ConcreteType.FullName}");

if (typeBinding.TypeScope is TypeScope.Single)
{
Expand Down
2 changes: 1 addition & 1 deletion ManualDi.Main/ManualDi.Main/ManualDi.Main.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Nullable>enable</Nullable>
<AssemblyName>ManualDi.Main</AssemblyName>
<RootNamespace>ManualDi.Main</RootNamespace>
<Version>1.6.1</Version>
<Version>1.6.2</Version>
<Authors>Pere Viader</Authors>
<RepositoryUrl>https://github.com/PereViader/ManualDi.Main</RepositoryUrl>
<Product>ManualDi.Main</Product>
Expand Down

0 comments on commit 1c9b076

Please sign in to comment.