Removed the extra newline char from the messages

This commit is contained in:
Ken Cochrane 2013-03-14 20:23:45 -07:00
parent d94a5b7d05
commit 7ec6a311f8
1 changed files with 3 additions and 3 deletions

View File

@ -121,15 +121,15 @@ func Login(authConfig AuthConfig) (string, error) {
status = "Login Succeeded\n"
storeConfig = true
} else {
status = fmt.Sprintf("Login: %s\n", body)
status = fmt.Sprintf("Login: %s", body)
return "", errors.New(status)
}
} else {
status = fmt.Sprintf("Registration: %s\n", string(reqBody))
status = fmt.Sprintf("Registration: %s", string(reqBody))
return "", errors.New(status)
}
} else {
status = fmt.Sprintf("[%s] : %s \n", reqStatusCode, string(reqBody))
status = fmt.Sprintf("[%s] : %s", reqStatusCode, string(reqBody))
return "", errors.New(status)
}
if storeConfig {