Skip to content

Commit

Permalink
Docs: typo in prefer-promise-reject-errors (#7958)
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick McElhaney authored and not-an-aardvark committed Jan 20, 2017
1 parent 67ac93c commit 8bcbf5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/prefer-promise-reject-errors.md
@@ -1,6 +1,6 @@
# require using Error objects as Promise rejection reasons (prefer-promise-reject-errors)

It is considered good practice to only instances of the built-in `Error` object for user-defined errors in Promises. `Error` objects automatically store a stack trace, which can be used to debug an error by determining where it came from. If a Promise is rejected with a non-`Error` value, it can be difficult to determine where the rejection occurred.
It is considered good practice to only pass instances of the built-in `Error` object to the `reject()` function for user-defined errors in Promises. `Error` objects automatically store a stack trace, which can be used to debug an error by determining where it came from. If a Promise is rejected with a non-`Error` value, it can be difficult to determine where the rejection occurred.


## Rule Details
Expand Down

0 comments on commit 8bcbf5d

Please sign in to comment.