mozilla-b2g/gaia-email-libs-and-more — pull request #36 by mozsquib (2012-09-12 22:19:35+00:00)
Title: Let tryToCreateAccount return different kinds of failures

@asutherland: this PR lets our account creation code return different error codes so that the UI can respond appropriately. Right now, this just means that the error string in the UI is different, but we can hook this up to some nicer UI in Gaia later.

I will need to improve this a bit more for Gmail ActiveSync, since we hardcode the config for that, and thus connection is always assumed to work. (Either that, or bug people until we get DNS SRV support, which I *think* is why Gmail's autodiscovery doesn't work for us...)