Passing error code
bcmk 45658475+bcmk@users.noreply.github.com
Fri, 01 Mar 2019 20:17:35 +0400
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