Skip to content

Commit

Permalink
Remove JSON.stringify from usage
Browse files Browse the repository at this point in the history
The output is not JSON.stringify safe, see discussion in sindresorhus#55

I noticed this myself when trying to pass a [`got`](https://github.com/sindresorhus/got) error to this - it causes JSON.stringify to fail
  • Loading branch information
mifi authored Aug 27, 2024
1 parent 29b0fcb commit 9cb9097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Serialize/deserialize an error into a plain object
Useful if you for example need to `JSON.stringify()` or `process.send()` the error.
Useful if you for example need to `process.send()` the error.

## Install

Expand Down

0 comments on commit 9cb9097

Please sign in to comment.