From 1c9b076fcdefebf6bd439a0cd07c0d686b4997e8 Mon Sep 17 00:00:00 2001 From: Pere Viader Date: Wed, 16 Oct 2024 23:32:50 +0200 Subject: [PATCH] Fix wrong error message --- ManualDi.Main/ManualDi.Main/Container/DiContainer.cs | 4 ++-- ManualDi.Main/ManualDi.Main/ManualDi.Main.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ManualDi.Main/ManualDi.Main/Container/DiContainer.cs b/ManualDi.Main/ManualDi.Main/Container/DiContainer.cs index 27fa69f..12089ea 100644 --- a/ManualDi.Main/ManualDi.Main/Container/DiContainer.cs +++ b/ManualDi.Main/ManualDi.Main/Container/DiContainer.cs @@ -78,7 +78,7 @@ internal object ResolveBinding(TypeBinding).FullName}"); object objectInstance = instance; if (typeBinding.TypeScope is TypeScope.Single) @@ -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) { diff --git a/ManualDi.Main/ManualDi.Main/ManualDi.Main.csproj b/ManualDi.Main/ManualDi.Main/ManualDi.Main.csproj index d55726f..9052d29 100644 --- a/ManualDi.Main/ManualDi.Main/ManualDi.Main.csproj +++ b/ManualDi.Main/ManualDi.Main/ManualDi.Main.csproj @@ -7,7 +7,7 @@ enable ManualDi.Main ManualDi.Main - 1.6.1 + 1.6.2 Pere Viader https://github.com/PereViader/ManualDi.Main ManualDi.Main