more informative curl error messages
closes #905
Merge pull request #909 from AltGr/better-curl-messages

more informative curl error messages closes #905