From e5c2dcd2aa6dc3f09de19a3acca905ee9fed0f07 Mon Sep 17 00:00:00 2001 From: Sergio Matias Urquin Date: Sun, 31 Aug 2025 17:47:58 -0600 Subject: [PATCH] Fix: pass the internal server error through layers. --- Lib.Architecture.BuildingBlocks/Helpers/ApiResponseHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib.Architecture.BuildingBlocks/Helpers/ApiResponseHelper.cs b/Lib.Architecture.BuildingBlocks/Helpers/ApiResponseHelper.cs index 4eeee10..512d45c 100644 --- a/Lib.Architecture.BuildingBlocks/Helpers/ApiResponseHelper.cs +++ b/Lib.Architecture.BuildingBlocks/Helpers/ApiResponseHelper.cs @@ -34,7 +34,7 @@ namespace Lib.Architecture.BuildingBlocks.Helpers } } - if (refitException.StatusCode == HttpStatusCode.InternalServerError && errorMessage is string) + if (refitException.StatusCode == HttpStatusCode.InternalServerError && (errorMessage is string || errorMessage is HttpError)) port.InternalServerError(errorMessage); else if (refitException.StatusCode == HttpStatusCode.NotFound)