Fix: pass the internal server error through layers.
This commit is contained in:
parent
255062adff
commit
e5c2dcd2aa
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user