This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-client-go.git


The following commit(s) were added to refs/heads/master by this push:
     new b7123e8  Add omit tag to ErrorResponse.Response field (#121)
b7123e8 is described below

commit b7123e8f98f0d9f465e8bea4d6c1548ae0132550
Author: Rikuo Takahama <[email protected]>
AuthorDate: Wed Jan 6 05:45:59 2021 +0900

    Add omit tag to ErrorResponse.Response field (#121)
---
 whisk/client.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/whisk/client.go b/whisk/client.go
index 9ea01bc..29c1a15 100644
--- a/whisk/client.go
+++ b/whisk/client.go
@@ -729,7 +729,7 @@ func parseSuccessResponse(resp *http.Response, data []byte, 
v interface{}) *http
 //     "code": "1422870"
 // }
 type ErrorResponse struct {
-       Response *http.Response // HTTP response that caused this error
+       Response *http.Response `json:"-"`     // HTTP response that caused 
this error
        ErrMsg   *interface{}   `json:"error"` // error message string
        Code     *interface{}   `json:"code"`  // validation error code (tid)
 }

Reply via email to