From cac6cfa6f6eda3fce45b658eafa07a70747a4652 Mon Sep 17 00:00:00 2001 From: Arthur Fiorette Date: Fri, 25 Nov 2022 10:46:49 -0300 Subject: [PATCH] fix: include config on new CancelledError (#4922) Co-authored-by: Jay --- 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 fe0fa3dd13..9e306aac4c 100644 --- a/lib/core/dispatchRequest.js +++ b/lib/core/dispatchRequest.js @@ -20,7 +20,7 @@ function throwIfCancellationRequested(config) { } if (config.signal && config.signal.aborted) { - throw new CanceledError(); + throw new CanceledError(null, config); } }