Browse Source

anonymize filepath of error.message content

gre-patch-1
Gaëtan Renaudeau 6 years ago
parent
commit
cfdec62f3d
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 3
      src/helpers/anonymizer.js

3
src/helpers/anonymizer.js

@ -46,6 +46,9 @@ function filepathRecursiveReplacer(obj: mixed, seen: Array<*>) {
}
}
} else {
if (obj instanceof Error) {
obj.message = filepathReplace(obj.message)
}
for (const k in obj) {
if (typeof obj.hasOwnProperty === 'function' && obj.hasOwnProperty(k)) {
const value = obj[k]

Loading…
Cancel
Save