openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdeu...@apache.org
Subject [incubator-openwhisk-client-go] branch master updated: Handle error code (tid) not as int. (#77)
Date Tue, 24 Apr 2018 20:03:09 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 3d62dac  Handle error code (tid) not as int. (#77)
3d62dac is described below

commit 3d62dac688b8efa88f924658a9ac8f1058fed4ea
Author: Christian Bickel <github@cbickel.de>
AuthorDate: Tue Apr 24 22:03:06 2018 +0200

    Handle error code (tid) not as int. (#77)
---
 whisk/client.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/whisk/client.go b/whisk/client.go
index 7b4862f..85ac505 100644
--- a/whisk/client.go
+++ b/whisk/client.go
@@ -602,12 +602,12 @@ func parseSuccessResponse(resp *http.Response, data []byte, v interface{})
*http
 // Here's an example error response body with HTTP status code == 400
 // {
 //     "error": "namespace contains invalid characters",
-//     "code": 1422870
+//     "code": "1422870"
 // }
 type ErrorResponse struct {
 	Response *http.Response // HTTP response that caused this error
 	ErrMsg   *interface{}   `json:"error"` // error message string
-	Code     *int64         `json:"code"`  // validation error code
+	Code     *interface{}   `json:"code"`  // validation error code (tid)
 }
 
 type AppErrorResult struct {

-- 
To stop receiving notification emails like this one, please contact
mdeuser@apache.org.

Mime
View raw message