Updated to throw exception when curl fails
Small bug fix
Fails to deliver correct message