Skip to content

Commit

Permalink
Log correct error #3
Browse files Browse the repository at this point in the history
  • Loading branch information
t94j0 authored Apr 9, 2024
1 parent 22e3854 commit 3d43cfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func handler(w http.ResponseWriter, r *http.Request) {
log.Debug(string(body))

if err := validateSignature(body, r); err != nil {
log.Error(errInvalidSignature)
http.Error(w, errInvalidSignature.Error(), http.StatusBadRequest)
log.Error(err)
http.Error(w, err.Error(), http.StatusBadRequest)
return
}

Expand Down

0 comments on commit 3d43cfa

Please sign in to comment.