Skip to content

Add abort reason as the AbortError cause#1829

Open
ikonst wants to merge 1 commit intonode-fetch:mainfrom
ikonst:patch-1
Open

Add abort reason as the AbortError cause#1829
ikonst wants to merge 1 commit intonode-fetch:mainfrom
ikonst:patch-1

Conversation

@ikonst
Copy link

@ikonst ikonst commented Nov 9, 2024

To better capture the cause of the abort, we can attach the abort signal's reason as the cause of the AbortError that we throw.


  • I updated readme
  • I added unit test(s)

@ikonst
Copy link
Author

ikonst commented Nov 9, 2024

I can add tests if we think it's a good idea to make this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant