Skip to content

Conversation

@bitcrumb
Copy link
Contributor

Both xhr.onerror and xhr.ontimeout throw the same error.

I think it would be beneficial to have both handler emit errors with a different message. This way, applications can behave differently based on the error message. Especially since there is no such thing as a unique error code do distinguish both errors.

@JakeChampion JakeChampion changed the title Change error message on timeout fix: Have unique error messages for xhr timeouts and errors Sep 11, 2023
@JakeChampion JakeChampion merged commit 7170f0b into JakeChampion:master Sep 11, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants