[DocumentUpdaterManager] use a new UpdateTooLargeError

This commit is contained in:
Jakob Ackermann
2020-08-21 12:47:05 +01:00
parent 5950b26a42
commit af50f9b02c
5 changed files with 13 additions and 8 deletions
@@ -509,7 +509,7 @@ module.exports = WebsocketController = {
function (error) {
if ((error && error.message) === 'update is too large') {
metrics.inc('update_too_large')
const { updateSize } = error
const { updateSize } = error.info
logger.warn(
{ user_id, project_id, doc_id, updateSize },
'update is too large'