From 063ee0d6b59a32566eaa1a0aa11518334eb57c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Fri, 27 Apr 2018 21:57:21 +0300 Subject: [PATCH] Fix checking localizedString.ResourceNotFound --- .../ExceptionHandling/DefaultExceptionToErrorInfoConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/DefaultExceptionToErrorInfoConverter.cs b/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/DefaultExceptionToErrorInfoConverter.cs index 3edfa66cba..36e2e6ef73 100644 --- a/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/DefaultExceptionToErrorInfoConverter.cs +++ b/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/DefaultExceptionToErrorInfoConverter.cs @@ -119,7 +119,7 @@ namespace Volo.Abp.AspNetCore.Mvc.ExceptionHandling var stringLocalizer = _stringLocalizerFactory.Create(localizationResourceType); var localizedString = stringLocalizer[exceptionWithErrorCode.Code]; - if (!localizedString.ResourceNotFound) + if (localizedString.ResourceNotFound) { return; }