Fixed typo in 'username or email already exists'

This commit is contained in:
shin- 2013-05-01 09:06:17 -07:00
Родитель 5690562fc8
Коммит 594827d416
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -126,8 +126,7 @@ func Login(authConfig *AuthConfig) (string, error) {
status = "Account Created\n"
storeConfig = true
} else if reqStatusCode == 400 {
// FIXME: This should be 'exists', not 'exist'. Need to change on the server first.
if string(reqBody) == "\"Username or email already exist\"" {
if string(reqBody) == "\"Username or email already exists\"" {
req, err := http.NewRequest("GET", INDEX_SERVER+"/v1/users/", nil)
req.SetBasicAuth(authConfig.Username, authConfig.Password)
resp, err := client.Do(req)