|
|
@ -66,7 +66,7 @@ function simplifyErrorMessages(report) { |
|
|
|
|
|
|
|
|
|
|
|
function rewriteErrorMessages(report, rewriteFn) { |
|
|
|
function rewriteErrorMessages(report, rewriteFn) { |
|
|
|
// rewrite top level message
|
|
|
|
// rewrite top level message
|
|
|
|
report.message = rewriteFn(report.message) |
|
|
|
if (report.message) report.message = rewriteFn(report.message) |
|
|
|
// rewrite each exception message
|
|
|
|
// rewrite each exception message
|
|
|
|
if (report.exception && report.exception.values) { |
|
|
|
if (report.exception && report.exception.values) { |
|
|
|
report.exception.values.forEach(item => { |
|
|
|
report.exception.values.forEach(item => { |
|
|
|