Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Handle rejected promises #621

Merged
merged 2 commits into from
Jun 8, 2017
Merged

Handle rejected promises #621

merged 2 commits into from
Jun 8, 2017

Conversation

jarvelov
Copy link
Contributor

@jarvelov jarvelov commented Jun 7, 2017

vue-resource doesn't handle promise rejections and instead we get unhandled rejection errors which makes error handling harder. This patch just sends the rejection up the chain so that the error can be handled.

The added benefit is that interceptors now can return a rejected Promise which has been listed as an issue here

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