--
You received this message because you are subscribed to the Google Groups "Google Identity Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-identity-t...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
the response from your endpoint need to be a valid json object, e.g., {"error": "EMAIL_EXISTS"}.did your server generate the responses or one of our server side libraries? If it's our library, please let us know which one you're using and we'll make a fix.
- Mengcheng
On Wed, Feb 25, 2015 at 2:54 PM, Brian Chapman wrote:
I'm using the GitKit javascript widget to change the email address (?mode=manageAccount). When I attempted to change the email address, the widget stalled with a spinner icon.The browser console indicated the following error "Uncaught Error: Invalid JSON string: {"error": EMAIL_EXISTS }", which makes since and is correct.How do I intercept this error message, cancel the current gitkit operation and display a useful message to the user?Thanks, Brian.
--
You received this message because you are subscribed to the Google Groups "Google Identity Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-identity-toolkit+unsub...@googlegroups.com.
6298c6298,6302
< c && c.success ? Am(a, b, t(e)) : d.showInfoBar("Request failed. Please try again.")
---
> var errorMessage = "Request failed. Please try again.";
> if (c && c.error && c.error == 'EMAIL_EXISTS') {
> errorMessage = "That Email exists. If it's yours, signout and sign in using it.";
> };
> c && c.success ? Am(a, b, t(e)) : d.showInfoBar(errorMessage)