Added Verbose mode and be more fixed some newline inconsistencies

This commit is contained in:
Henry
2014-02-11 14:08:52 +01:00
parent 3575c9897f
commit b0e9ab001e
7 changed files with 45 additions and 35 deletions

View File

@ -13,6 +13,7 @@ type Reply struct {
}
func parseReply(line string) (r *Reply, err error) {
line = strings.TrimSpace(line)
parts := strings.Split(line, " ")
if len(parts) < 3 {
return nil, fmt.Errorf("Malformed Reply.\n%s\n", line)