Throw exception on curl exec error
Merge pull request #2 from siboulet/master

Throw exception on curl exec error