Skip to content

Commit

Permalink
fix: API client leaks stack trace with an error (#1772)
Browse files Browse the repository at this point in the history
Closes #1771
  • Loading branch information
seremenko-wish committed Sep 22, 2021
1 parent 31162d2 commit d3aff6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (h *Handler) IsAuthenticated(wrap httprouter.Handle, onUnauthenticated http
return
}

h.r.Writer().WriteError(w, r, errors.WithStack(herodot.ErrForbidden.WithReason("This endpoint can only be accessed with a valid session. Please log in and try again.").WithDebugf("%+v", err)))
h.r.Writer().WriteError(w, r, errors.WithStack(herodot.ErrForbidden.WithReason("This endpoint can only be accessed with a valid session. Please log in and try again.")))
return
}

Expand Down

0 comments on commit d3aff6d

Please sign in to comment.