From 1ad5312ee34e9fd710a2106b0a27b0df97ee2f81 Mon Sep 17 00:00:00 2001 From: Peter Marton Date: Thu, 19 Dec 2024 09:55:36 +0100 Subject: [PATCH] fix(error): register app error --- openmeter/billing/httpdriver/errors.go | 1 + 1 file changed, 1 insertion(+) diff --git a/openmeter/billing/httpdriver/errors.go b/openmeter/billing/httpdriver/errors.go index c60b2a877..fe4fe60d4 100644 --- a/openmeter/billing/httpdriver/errors.go +++ b/openmeter/billing/httpdriver/errors.go @@ -26,6 +26,7 @@ func errorEncoder() httptransport.ErrorEncoder { commonhttp.HandleErrorIfTypeMatches[customerentity.UpdateAfterDeleteError](ctx, http.StatusConflict, err, w) || commonhttp.HandleErrorIfTypeMatches[customerentity.SubjectKeyConflictError](ctx, http.StatusConflict, err, w) || // dependency: apps + commonhttp.HandleErrorIfTypeMatches[billing.AppError](ctx, http.StatusBadRequest, err, w) || commonhttp.HandleErrorIfTypeMatches[app.AppNotFoundError](ctx, http.StatusNotFound, err, w) || commonhttp.HandleErrorIfTypeMatches[app.AppDefaultNotFoundError](ctx, http.StatusNotFound, err, w) || commonhttp.HandleErrorIfTypeMatches[app.ValidationError](ctx, http.StatusBadRequest, err, w)