diff --git a/tsuru/client/volume.go b/tsuru/client/volume.go index 0b5be314f..f074a51fe 100644 --- a/tsuru/client/volume.go +++ b/tsuru/client/volume.go @@ -79,9 +79,11 @@ func (c *VolumeCreate) Run(ctx *cmd.Context, client *cmd.Client) error { if err != nil { return err } - err = cmd.StreamJSONResponse(ctx.Stdout, response) + if err != nil { + return err + } fmt.Fprint(ctx.Stdout, "Volume successfully created.\n") return nil }