From 1b6e84b77e6f63e5adde219fd81445d1bcfa30fa Mon Sep 17 00:00:00 2001 From: arthurfiorette Date: Fri, 19 Aug 2022 18:21:08 -0300 Subject: [PATCH] fix: include config on new CancelledError --- lib/core/dispatchRequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/dispatchRequest.js b/lib/core/dispatchRequest.js index 46ced28e33..4d3e9fe608 100644 --- a/lib/core/dispatchRequest.js +++ b/lib/core/dispatchRequest.js @@ -19,7 +19,7 @@ function throwIfCancellationRequested(config) { } if (config.signal && config.signal.aborted) { - throw new CanceledError(); + throw new CanceledError(null, config); } }