Skip to content

Commit

Permalink
fix: clarify error message
Browse files Browse the repository at this point in the history
  • Loading branch information
maier committed Mar 17, 2023
1 parent de77479 commit 99844f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ func (h bulkHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
if err != nil {
reqLogger.Error().Err(err).Msg("making destination request")
// http.Error(w, "making destination request", http.StatusInternalServerError)
// return
http.Error(w, "making destination request", http.StatusInternalServerError)
return
}

tags := trapmetrics.Tags{
Expand Down Expand Up @@ -502,8 +502,8 @@ func (s *Server) genericRequest(w http.ResponseWriter, r *http.Request) {
}
if err != nil {
reqLogger.Error().Err(err).Msg("making destination request")
// s.serverError(w, fmt.Errorf("making destination request (%s): %w", req.URL.String(), err))
// return
http.Error(w, "making destination request", http.StatusInternalServerError)
return
}

tags := trapmetrics.Tags{
Expand Down

0 comments on commit 99844f6

Please sign in to comment.