return pointer to error
NemoD503 1historicus@gmail.com
Sun, 20 Oct 2019 22:47:21 +0300
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
bot.go
→
bot.go
@@ -92,7 +92,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