Skip to content

Commit

Permalink
Fix CancelError docs
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Aug 6, 2020
1 parent 82caab2 commit 28c400f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@ Additionaly, the errors may have `request` (Got Stream) and `response` (Got Resp
#### got.RequestError
When a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`. Note that all other types of errors listed below are subclasses of this one, with the exception of `CancelError`.
When a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`. All the errors below inherit this one.
#### got.CacheError
Expand Down Expand Up @@ -1645,7 +1645,7 @@ When the request is aborted due to a [timeout](#timeout). Includes an `event` an
#### got.CancelError
When the request is aborted with `.cancel()`. This type is not a subclass of `RequestError` as it is re-exported from the `p-cancelable` package.
When the request is aborted with `.cancel()`.
## Aborting the request
Expand Down

0 comments on commit 28c400f

Please sign in to comment.