Skip to content

Commit

Permalink
doc: fix wrong sentence in errors.md
Browse files Browse the repository at this point in the history
  • Loading branch information
romanshoryn committed Jul 9, 2017
1 parent 1b2733f commit 1a42795
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ Error.captureStackTrace(myObject);
myObject.stack; // similar to `new Error().stack`
```

The first line of the trace, instead of being prefixed with `ErrorType:
message`, will be the result of calling `targetObject.toString()`.
The first line of the trace will be prefixed with `ErrorType.name: message`.

The optional `constructorOpt` argument accepts a function. If given, all frames
above `constructorOpt`, including `constructorOpt`, will be omitted from the
Expand Down

0 comments on commit 1a42795

Please sign in to comment.