janssenr / SendCloudApi.Net

A C#/.net wrapper for the SendCloud API
MIT License
6 stars 5 forks source link

Unable to catch SendCloudException #1

Closed grandconjuration closed 5 years ago

grandconjuration commented 5 years ago

Trying to catch a SendCloudException when making a HttpRequest will fail because the HandleReponseError method is async void. Shouldn't this method have a Task return type?

janssenr commented 5 years ago

Changed the HandleResponseError method to have a Task return type. Now you should be able to catch a SendCloudException when making a HttpRequest.