Making send to http more robust

This commit is contained in:
Unknown 2018-01-23 16:50:45 +10:30
parent 7f15e2e6d2
commit 99ad40ba2f
1 changed files with 2 additions and 0 deletions

View File

@ -343,6 +343,8 @@ func (r *revidInst)sendClipToHTTP(clip []byte, output string) error {
body, err := ioutil.ReadAll(resp.Body)
if err == nil {
fmt.Printf("%s\n", body)
} else {
r.ErrOut(err.Error())
}
return nil
}