mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix progress message in client
This commit is contained in:
parent
10ef4f7f39
commit
3922691fb9
4 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue