Merge pull request #227 from bcmk/passing-error-code Passing error code
Syfaro syfaro@huefox.com
Wed, 24 Apr 2019 04:32:50 -0500
M
bot.go
→
bot.go
@@ -84,7 +84,7 @@ parameters := ResponseParameters{}
if apiResp.Parameters != nil { parameters = *apiResp.Parameters } - return apiResp, Error{apiResp.Description, parameters} + return apiResp, Error{Code: apiResp.ErrorCode, Message: apiResp.Description, ResponseParameters: parameters} } return apiResp, nil