2
0
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:
Arthur Fiorette
2022-11-25 10:46:49 -03:00
committed by GitHub
parent f92e167f76
commit cac6cfa6f6
+1 -1
View File
@@ -20,7 +20,7 @@ function throwIfCancellationRequested(config) {
}
if (config.signal && config.signal.aborted) {
throw new CanceledError();
throw new CanceledError(null, config);
}
}