mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
fix: include config on new CancelledError (#4922)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -20,7 +20,7 @@ function throwIfCancellationRequested(config) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (config.signal && config.signal.aborted) {
|
if (config.signal && config.signal.aborted) {
|
||||||
throw new CanceledError();
|
throw new CanceledError(null, config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user