youngguns-nl / moneybird_php_api

A PHP Library for the MoneyBird API
http://www.moneybird.nl
MIT License
37 stars 14 forks source link

Throw exception when curl error #76

Closed FlyingNimbus closed 8 years ago

FlyingNimbus commented 8 years ago

When developing on localhost I ran into this issue, I got a UknownHttpStatusException, which I found hard to troubleshoot. Turned out curl gave an error, if I had seen that error right away it would have saved me a lot of time

pluijm commented 8 years ago

Did you see this: https://github.com/youngguns-nl/moneybird_php_api/wiki/Common-errors

FlyingNimbus commented 8 years ago

Yes I had seen the wiki article, but there being no specific error to Google made it hard for me to resolve this. Seeing the curl error also ensured me that was the problem. Thanks for the merge