Browse Source
Merge pull request #1544 from gre/anon-error-message
anonymize filepath of error.message content
gre-patch-1
Meriadec Pillet
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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] |
|
|
|