V
V
Vladimir Golub2019-12-06 09:56:04
JavaScript
Vladimir Golub, 2019-12-06 09:56:04

How to store complete error info after JSON.stringify?

At the very beginning of the error, when it is displayed using console log, there is a description of it, after JSON.stringify it disappears. How to leave it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mideks, 2019-12-06
@Mideks

Perhaps you need it?
console.log(JSON.stringify(new Error().stack))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question