Browse Source
anonymize filepath of error.message content
gre-patch-1
Gaëtan Renaudeau
6 years ago
No known key found for this signature in database
GPG Key ID: 7B66B85F042E5451
1 changed files with
3 additions and
0 deletions
-
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] |
|
|
|