From 28c400f4df5f45990f80641a794a2d09439bef93 Mon Sep 17 00:00:00 2001 From: Szymon Marczak <36894700+szmarczak@users.noreply.github.com> Date: Fri, 7 Aug 2020 01:34:54 +0200 Subject: [PATCH] Fix `CancelError` docs --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 126875601..e307f2e0d 100644 --- a/readme.md +++ b/readme.md @@ -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 @@ -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