Skip to content

Commit

Permalink
Fix staticcheck issue
Browse files Browse the repository at this point in the history
Not sure why this wasn't caught before; but the latest staticcheck is
complaining and blocking CI runs
  • Loading branch information
jacksontj committed Aug 28, 2024
1 parent 2d9e4b4 commit 38754d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (h *ApacheLoggingHandler) runHandler(rw http.ResponseWriter, r *http.Reques
defer func() {
if rec := recover(); rec != nil {
// Just return a stack trace always
err = errors.Wrap(fmt.Errorf(string(debug.Stack())), "Error running handler")
err = errors.Wrap(errors.New(string(debug.Stack())), "Error running handler")
}
}()
h.handler.ServeHTTP(rw, r)
Expand Down

0 comments on commit 38754d6

Please sign in to comment.