Skip to content

Commit

Permalink
fix(error): register app error
Browse files Browse the repository at this point in the history
  • Loading branch information
hekike committed Dec 20, 2024
1 parent ff4214a commit 1ad5312
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openmeter/billing/httpdriver/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1ad5312

Please sign in to comment.