How to convert exception object (symbol) into readable string

24 Views Asked by At

Let's say, in .ts file you have syntax error and you load the app with ts-node/esm. uncaughtException will throw such exception:

> Symbol(nodejs.util.inspect.custom)

What is the best way to turn it into readable string, because err.toString () does not work?

enter image description here

0

There are 0 best solutions below