fix progress message in client

This commit is contained in:
Victor Vieux
2013-06-04 16:09:08 +00:00
parent 10ef4f7f39
commit 3922691fb9
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -608,7 +608,7 @@ func (sf *StreamFormatter) FormatError(err error) []byte {
func (sf *StreamFormatter) FormatProgress(action, str string) []byte {
sf.used = true
if sf.json {
b, err := json.Marshal(&JsonMessage{Progress:str})
b, err := json.Marshal(&JsonMessage{Status: action, Progress:str})
if err != nil {
return nil
}