From 626705c0eae125900bc9c4eb282887db0882c3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Fri, 1 Mar 2024 07:59:56 +0100 Subject: [PATCH] fix: fix incorrect type assertion [SKIP CI] --- internal/port/handler_http_api_error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/port/handler_http_api_error.go b/internal/port/handler_http_api_error.go index 6ba834c..24e79b6 100644 --- a/internal/port/handler_http_api_error.go +++ b/internal/port/handler_http_api_error.go @@ -155,7 +155,7 @@ func (re apiErrorRenderer) domainErrorToAPIError(domainErr domain.Error) apiErro pathSegments = append(pathSegments, withPath.Path()) - u, ok := err.(interface { + u, ok := withPath.(interface { Unwrap() error }) if ok {