Merge pull request #3074 from overleaf/msm-update-oerror-logger-v3
Update o-error to v3 and logger-sharelatex to v3 GitOrigin-RevId: 5e6386f65b7893949336aa4ff021212aebd98f4a
This commit is contained in:
@@ -213,7 +213,7 @@ const UserController = {
|
||||
errorData.info.public = {
|
||||
error: 'SubscriptionAdminDeletionError'
|
||||
}
|
||||
logger.warn(new OError(errorData).withCause(err))
|
||||
logger.warn(OError.tag(err, errorData.message, errorData.info))
|
||||
return HttpErrorHandler.unprocessableEntity(
|
||||
req,
|
||||
res,
|
||||
@@ -221,7 +221,7 @@ const UserController = {
|
||||
errorData.info.public
|
||||
)
|
||||
} else {
|
||||
return next(new OError(errorData).withCause(err))
|
||||
return next(OError.tag(err, errorData.message, errorData.info))
|
||||
}
|
||||
}
|
||||
const sessionId = req.sessionID
|
||||
@@ -350,10 +350,10 @@ const UserController = {
|
||||
req,
|
||||
res,
|
||||
req.i18n.translate('problem_changing_email_address'),
|
||||
new OError({
|
||||
message: 'problem_changing_email_address',
|
||||
info: { userId, newEmail }
|
||||
}).withCause(err)
|
||||
OError.tag(err, 'problem_changing_email_address', {
|
||||
userId,
|
||||
newEmail
|
||||
})
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user