diff --git a/cmd/cromp/client.go b/cmd/cromp/client.go index f9b48ec..db2b0a8 100644 --- a/cmd/cromp/client.go +++ b/cmd/cromp/client.go @@ -51,7 +51,7 @@ func Get(url string, resBody interface{}) error { return err } - fmt.Println(string(data)) + return fmt.Errorf(string(data)) } return nil @@ -104,7 +104,7 @@ func Post(url string, reqBody, resBody interface{}) (err error) { return err } - fmt.Println(string(data)) + return fmt.Errorf(string(data)) } return nil