- added curl error message buffer in case when curl fails