Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error management #21

Open
svengau opened this issue Jan 16, 2017 · 0 comments
Open

Error management #21

svengau opened this issue Jan 16, 2017 · 0 comments

Comments

@svengau
Copy link

svengau commented Jan 16, 2017

Hi,
I'm facing an issue to display mutation errors using relate.

In helpers/request.js, the errors are dispatched, but not returned by the promise.

promise = promise.then(({data, errors}) => {
          dispatch({type, data, errors, ...params});
          return data;
});

And in the reducer, the errors are not handled at all.

My first sight will be to update the request helper, and return the errors in the promise, but I may miss something.

Any suggestion on how handle errors using relate ?

Thanks & Regards,

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

No branches or pull requests

1 participant