fix errors

This commit is contained in:
Victor Vieux
2013-07-25 14:32:46 +00:00
parent f1dd299227
commit 01e98bf0dd
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -658,12 +658,14 @@ func DisplayJSONMessagesStream(in io.Reader, out io.Writer) error {
}
fmt.Fprintf(out, "%c[%dA", 27, diff)
}
jm.Display(out)
err := jm.Display(out)
if jm.ID != "" {
fmt.Fprintf(out, "%c[%dB", 27, diff)
}
if err != nil {
return err
}
}
// fmt.Fprintf(out, "\n")
return nil
}