Merge pull request #275 from NemoD503/error_pointer Return pointer to error.
Kirill Zhuharev zhuharev@users.noreply.github.com
Thu, 19 Mar 2020 07:22:28 +0300
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
bot.go
→
bot.go
@@ -100,7 +100,7 @@ parameters := ResponseParameters{}
if apiResp.Parameters != nil { parameters = *apiResp.Parameters } - return apiResp, Error{Code: apiResp.ErrorCode, Message: apiResp.Description, ResponseParameters: parameters} + return apiResp, &Error{Code: apiResp.ErrorCode, Message: apiResp.Description, ResponseParameters: parameters} } return apiResp, nil