Fixed an exception when logging unserializable errors
Reviewed By: nikoant Differential Revision: D33276412 fbshipit-source-id: 615b2cc523a3ab4445a1208f460753b8634f6812
This commit is contained in:
committed by
Facebook GitHub Bot
parent
74fa34fe98
commit
87833c759e
@@ -1166,6 +1166,12 @@ Usage: `uuid()`
|
||||
|
||||
Returns UUID V4.
|
||||
|
||||
### safeStringify
|
||||
|
||||
Usage: `safeStringify(dataStructure)`
|
||||
|
||||
Serialises the given data structure using `JSON.stringify`, but doesn't throw if the processes failed, but rather returns a `<unserializable ...>` string.
|
||||
|
||||
## TestUtils
|
||||
|
||||
The object `TestUtils` as exposed from `flipper-plugin` exposes utilities to write unit tests for Sandy plugins.
|
||||
|
||||
Reference in New Issue
Block a user