Skip to content

Commit d4f9089

Browse files
committed
Update README
1 parent 0ab979e commit d4f9089

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,21 @@ Converts errors to plain objects that are
9797
([or YAML](https://github.com/ehmicky/error-serializer#custom-serializationparsing),
9898
etc.). This is
9999
[automatically called](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#tojson_behavior)
100-
by `JSON.stringify()`. All error properties
100+
by `JSON.stringify()`.
101+
102+
All error properties
101103
[are kept](https://github.com/ehmicky/error-serializer#additional-error-properties).
102104
[Plugin options](https://github.com/ehmicky/modern-errors#plugin-options) are
103105
also preserved.
104106

105107
## BaseError.parse(value)
106108

107109
If `value` is an error plain object, converts it to an identical error instance.
108-
The original error class is preserved.
109-
110110
Otherwise, [recurse](#deep-serializationparsing) over `value` and parse any
111111
nested error plain object.
112112

113+
The original error classes are preserved.
114+
113115
# Usage
114116

115117
## JSON safety

0 commit comments

Comments
 (0)