From 3989a1ffe22c35f0a825c38d37bd0f38def4ec85 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 1 May 2019 16:25:10 +0200 Subject: [PATCH] Fix #15146 - Error reports can not be sent because too large Fixes #15146 See: 926a9f47bdf54c8da8b87875d55b648135d0c332 Aligned with php code (that does quite the same truncate on the context stack) Signed-off-by: William Desportes --- js/error_report.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/error_report.js b/js/error_report.js index 3a23c101fd..466bf96099 100644 --- a/js/error_report.js +++ b/js/error_report.js @@ -213,8 +213,8 @@ var ErrorReport = { var stack = exception.stack[i]; if (stack.context && stack.context.length) { for (var j = 0; j < stack.context.length; j++) { - if (stack.context[j].length > 180) { - stack.context[j] = stack.context[j].substring(-1, 180); + if (stack.context[j].length > 80) { + stack.context[j] = stack.context[j].substring(-1, 75) + '//...'; } } }