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