mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #2637 from overleaf/jpa-hotfix-graceful-session-access
[ErrorController] handleError: access session gracefully GitOrigin-RevId: 90c8ce0be80f5f198139a3b079c3a81e200112db
This commit is contained in:
parent
42aa999af6
commit
e7f968d370
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module.exports = ErrorController = {
|
|||
handleError(error, req, res, next) {
|
||||
const user = AuthenticationController.getSessionUser(req)
|
||||
// log errors related to SAML flow
|
||||
if (req.session.saml) {
|
||||
if (req.session && req.session.saml) {
|
||||
SamlLogHandler.log(req.session.saml.universityId, req.sessionID, {
|
||||
error: {
|
||||
message: error && error.message,
|
||||
|
|
Loading…
Reference in a new issue