We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b717609 commit 1b3cf97Copy full SHA for 1b3cf97
doc/api/errors.md
@@ -221,8 +221,7 @@ Error.captureStackTrace(myObject);
221
myObject.stack; // similar to `new Error().stack`
222
```
223
224
-The first line of the trace, instead of being prefixed with `ErrorType:
225
-message`, will be the result of calling `targetObject.toString()`.
+The first line of the trace will be prefixed with `${myObject.name}: ${myObject.message}`.
226
227
The optional `constructorOpt` argument accepts a function. If given, all frames
228
above `constructorOpt`, including `constructorOpt`, will be omitted from the
0 commit comments