More detailed error message on curl exceptions