mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +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) {
|
||||
throw new CanceledError();
|
||||
throw new CanceledError(null, config);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user