Skip to content

Commit

Permalink
Wrap error in validation for HTTP response
Browse files Browse the repository at this point in the history
- Encapsulates errors in validation for more informative responses.
  • Loading branch information
mastercactapus committed Sep 20, 2024
1 parent 95d9574 commit b1c66eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrationkey/uik/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
}

res, err := vm.Run(p, env)
if errutil.HTTPError(ctx, w, err) {
if errutil.HTTPError(ctx, w, validation.WrapError(err)) {
return
}

Expand Down

0 comments on commit b1c66eb

Please sign in to comment.