pass on errors

This commit is contained in:
Aaron Bieber 2020-04-30 06:21:01 -06:00
parent 480481afee
commit 4690a4b910

View File

@ -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