{"action":"opened","issue":{"url":"https://api.github.com/repos/djagya/yii2-sparkpost/issues/4","repository_url":"https://api.github.com/repos/djagya/yii2-sparkpost","labels_url":"https://api.github.com/repos/djagya/yii2-sparkpost/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/djagya/yii2-sparkpost/issues/4/comments","events_url":"https://api.github.com/repos/djagya/yii2-sparkpost/issues/4/events","html_url":"https://github.com/djagya/yii2-sparkpost/issues/4","id":148337641,"number":4,"title":"SparkPost API error messages hidden","user":{"login":"vercotux","id":2930526,"avatar_url":"https://avatars.githubusercontent.com/u/2930526?v=3","gravatar_id":"","url":"https://api.github.com/users/vercotux","html_url":"https://github.com/vercotux","followers_url":"https://api.github.com/users/vercotux/followers","following_url":"https://api.github.com/users/vercotux/following{/other_user}","gists_url":"https://api.github.com/users/vercotux/gists{/gist_id}","starred_url":"https://api.github.com/users/vercotux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vercotux/subscriptions","organizations_url":"https://api.github.com/users/vercotux/orgs","repos_url":"https://api.github.com/users/vercotux/repos","events_url":"https://api.github.com/users/vercotux/events{/privacy}","received_events_url":"https://api.github.com/users/vercotux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T11:56:54Z","updated_at":"2016-04-14T11:56:54Z","closed_at":null,"body":"Hello again!\r\n\r\nI found another minor (but quite significant) problem with errors.\r\nWhenever SparkPost rejects a transmission for whatever reason we get an exception.\r\nIt all happens on these [two](https://github.com/djagya/yii2-sparkpost/blob/58b44e4a5a1807bf8651c03cca6dde56a52ec435/Mailer.php#L187) [lines](https://github.com/djagya/yii2-sparkpost/blob/58b44e4a5a1807bf8651c03cca6dde56a52ec435/Mailer.php#L188).\r\nThe problem is that there are additional strings sent from SparkPost and whenever this happens (for example when quotas are exceeded) those are not included in the final exception.\r\n\r\n`APIResponseException` includes some additional and critical information in the following two variables:\r\n`apiMessage` and  `apiCode`. Could you please include them in Yii's log and the final thrown exception? Thanks!"}}