diff options
author | realytcracker <rapper@gmail.com> | 2017-03-07 01:36:33 -0800 |
---|---|---|
committer | realytcracker <rapper@gmail.com> | 2017-03-07 01:36:33 -0800 |
commit | 89c577f1d6c3d7ce773d077fcfc5c76a7bdc0ab0 (patch) | |
tree | 26d28e15506a7e700adc5dc377073864379fd685 | |
parent | a3e8f9695526b98a9317544d544c970ce5079d17 (diff) |
fixed get error
-rw-r--r-- | bridge.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -59,7 +59,7 @@ func (bridge *Bridge) Get(path string) ([]byte, io.Reader, error) { resp, err := client.Get(uri) if err != nil { - err = errors.New("Error: Unable to access bridge. ") + err = errors.New("unable to access bridge") return []byte{}, nil, err } return HandleResponse(resp) @@ -96,7 +96,7 @@ func (bridge *Bridge) Post(path string, params interface{}) ([]byte, io.Reader, if params != nil { reqBody, err := json.Marshal(params) if err != nil { - err = errors.New("unable to add POST body parameters due to json marshal error") + err = errors.New("unable to add POST body parameters due to json marshalling error") return []byte{}, nil, err } request = reqBody |