sfreiberg / gotwilio

Twilio library for Go (golang).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetSMS not return `error_message` field

lryong opened this issue · comments

I find that GetSMS() method filters out Twilio specific error code in SmsResponse, and only return when
HTTP Status Code is not 200.

I think it would be more appropriate to return the Twilio exception code field in the result, since the user can determine the reason for the failed SMS.

Sorry, I find the new version has a method GetMessage which returns error code, thx~