Skip to content

Commit

Permalink
fix: include config on new CancelledError (#4922)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
arthurfiorette and jasonsaayman committed Nov 25, 2022
1 parent f92e167 commit cac6cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/dispatchRequest.js
Expand Up @@ -20,7 +20,7 @@ function throwIfCancellationRequested(config) {
}

if (config.signal && config.signal.aborted) {
throw new CanceledError();
throw new CanceledError(null, config);
}
}

Expand Down

0 comments on commit cac6cfa

Please sign in to comment.