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

Add a "getErrorMessage" method, or similar #19

Open
chrisjhoughton opened this issue Jun 14, 2016 · 2 comments
Open

Add a "getErrorMessage" method, or similar #19

chrisjhoughton opened this issue Jun 14, 2016 · 2 comments

Comments

@chrisjhoughton
Copy link
Contributor

Every API is different about how it throws back errors. It's quite important that we show a useful message to the user, rather than "Bad request" or "Invalid status code".

We need a JS function on the global level which automatically tries to pull out errors from the body on failure.

@Johnbastian
Copy link
Contributor

Johnbastian commented Jan 19, 2017

Needs more elaboration as to why this is needed instead of using afterFailure.
An example (use-case) would be helpful.

@chrisjhoughton
Copy link
Contributor Author

Maybe this could/should simply be encompassed in the afterFailure, as you say. Here's an example. If you try to create a Salesforce lead with invalid date, you'll get this:

image

But the actual error is this:

image

It just feels like we could do more to easily surface that error info on the top level, if it exists. Maybe we just need more effort on the part of the connector developer rather than a falafel implementation.

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

No branches or pull requests

2 participants