Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Commit

Permalink
typecast body to string to fix error format (#55)
Browse files Browse the repository at this point in the history
Signed-off-by: prateekpandey14 <[email protected]>
  • Loading branch information
prateekpandey14 authored and Amit Kumar Das committed Aug 10, 2018
1 parent ad30190 commit 46c61d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openebs/pkg/volume/v1alpha1/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ func (v CASVolume) CreateVolume(vol v1alpha1.CASVolume) error {
}
code := resp.StatusCode
if code != http.StatusOK {
glog.Errorf("%s: failed to create volume '%s': response: %+v", http.StatusText(code), vol.Name, data)
return fmt.Errorf("%s: failed to create volume '%s': response: %+v", http.StatusText(code), vol.Name, data)
glog.Errorf("%s: failed to create volume '%s': response: %+v", http.StatusText(code), vol.Name, string(data))
return fmt.Errorf("%s: failed to create volume '%s': response: %+v", http.StatusText(code), vol.Name, string(data))
}

glog.Infof("volume Successfully Created:\n%#v", string(data))
Expand Down

0 comments on commit 46c61d1

Please sign in to comment.