From 89c577f1d6c3d7ce773d077fcfc5c76a7bdc0ab0 Mon Sep 17 00:00:00 2001 From: realytcracker Date: Tue, 7 Mar 2017 01:36:33 -0800 Subject: fixed get error --- bridge.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge.go b/bridge.go index c1dd5e6..c89d5f4 100644 --- a/bridge.go +++ b/bridge.go @@ -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 -- cgit v1.2.3